From 61ebf5970e88e915a09e80d0858ca6344efaa3ae Mon Sep 17 00:00:00 2001 From: bibo5088 Date: Tue, 17 Sep 2019 19:16:28 +0200 Subject: [PATCH] fix: bumped cross-spawn to version 7.0.0 (#211) * bumped cross-spawn to version 7.0.0 and added a warning about node.js 7 and lower * package.json, engines node : ">=8.0" BREAKING CHANGE: Drop support for Node.js < 7. --- README.md | 3 +++ package.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b973006..0f503e9 100755 --- a/README.md +++ b/README.md @@ -54,6 +54,9 @@ npm install --save-dev cross-env > WARNING! Make sure that when you're installing packages that you spell things > correctly to avoid [mistakenly installing malware][malware] +> NOTE : Version 6 of cross-env only supports Node.js 8 and higher, to use it on Node.js 7 or lower install version 5 +> ```npm install --save-dev cross-env@5 ``` + ## Usage I use this in my npm scripts: diff --git a/package.json b/package.json index 6123780..8be7cad 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "cross-env-shell": "dist/bin/cross-env-shell.js" }, "engines": { - "node": ">=4.0" + "node": ">=8.0" }, "scripts": { "add-contributor": "kcd-scripts contributors add", @@ -25,7 +25,7 @@ "author": "Kent C. Dodds (http://kentcdodds.com/)", "license": "MIT", "dependencies": { - "cross-spawn": "^6.0.5" + "cross-spawn": "^7.0.0" }, "devDependencies": { "kcd-scripts": "^0.3.4"