From db8c72c21591afc1dc3f05ea4454e1710ab0e219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20Cr=C3=A9bier?= Date: Tue, 17 Sep 2019 13:59:03 +0200 Subject: [PATCH 1/2] bumped cross-spawn to version 7.0.0 and added a warning about node.js 7 and lower --- README.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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..73a23ca 100644 --- a/package.json +++ b/package.json @@ -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" From 6d9d4e2a607d81c8a3520e6e0598809bea46b39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20Cr=C3=A9bier?= Date: Tue, 17 Sep 2019 14:14:23 +0200 Subject: [PATCH 2/2] package.json, engines node : ">=8.0" --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 73a23ca..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",