Skip to content

Commit e2b1cab

Browse files
Install n and npm in a postinsall hook
Having them as hard dependencies makes it impossible to npm i strider on Windows. Both modules have to be installed locally because strider-node will invoke those local modules and not use global installations.
1 parent 540d672 commit e2b1cab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Run Nodejs tests in Strider",
55
"main": "worker.js",
66
"scripts": {
7-
"test": "eslint webapp.js worker.js lib/ && node test | tap-spec"
7+
"test": "eslint webapp.js worker.js lib/ && node test | tap-spec",
8+
"postinstall": "npm install n npm || true"
89
},
910
"repository": {
1011
"type": "git",
@@ -17,8 +18,6 @@
1718
"author": "Peter Braden",
1819
"license": "BSD-3-Clause",
1920
"dependencies": {
20-
"npm": "^2.7.1",
21-
"n": "^2.1.0",
2221
"md5": "^2.0.0",
2322
"async": "^1.0.0",
2423
"fs-extra": "^0.8.1"

0 commit comments

Comments
 (0)