Skip to content

Instantly share code, notes, and snippets.

@pgarrison
Created November 2, 2016 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgarrison/4b7243e7931b541b6d3f24d5015b579c to your computer and use it in GitHub Desktop.
Save pgarrison/4b7243e7931b541b6d3f24d5015b579c to your computer and use it in GitHub Desktop.
npm i --dry-run with engine-strict
$ npm config set engine-strict true
$ vim package.json
$ ls
package.json
$ npm i --dry-run
npm WARN test@1.0.0 No description
npm WARN test@1.0.0 No repository field.
$ npm i
npm WARN test@1.0.0 No description
npm WARN test@1.0.0 No repository field.
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/home/philip/.nvm/versions/node/v6.8.1/bin/node" "/home/philip/.nvm/versions/node/v6.8.1/bin/npm" "i"
npm ERR! node v6.8.1
npm ERR! npm v4.0.1
npm ERR! code ENOTSUP
npm ERR! notsup Unsupported engine for test@1.0.0: wanted: {"node":"^4.0.0"} (current: {"node":"6.8.1","npm":"4.0.1"})
npm ERR! notsup Not compatible with your version of node/npm: test@1.0.0
npm ERR! notsup Not compatible with your version of node/npm: test@1.0.0
npm ERR! notsup Required: {"node":"^4.0.0"}
npm ERR! notsup Actual: {"npm":"4.0.1","node":"6.8.1"}
npm ERR! Please include the following file with any support request:
npm ERR! /home/philip/workspace/test/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/home/philip/.nvm/versions/node/v6.8.1/bin/node',
1 verbose cli '/home/philip/.nvm/versions/node/v6.8.1/bin/npm',
1 verbose cli 'i' ]
2 info using npm@4.0.1
3 info using node@v6.8.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install normalizeTree
8 silly loadCurrentTree Finishing
9 silly loadIdealTree Starting
10 silly install loadIdealTree
11 silly cloneCurrentTree Starting
12 silly install cloneCurrentTreeToIdealTree
13 silly cloneCurrentTree Finishing
14 silly loadShrinkwrap Starting
15 silly install loadShrinkwrap
16 silly loadShrinkwrap Finishing
17 silly loadAllDepsIntoIdealTree Starting
18 silly install loadAllDepsIntoIdealTree
19 silly loadAllDepsIntoIdealTree Finishing
20 silly loadIdealTree Finishing
21 silly currentTree test@1.0.0
22 silly idealTree test@1.0.0
23 silly generateActionsToTake Starting
24 silly install generateActionsToTake
25 silly generateActionsToTake Finishing
26 silly diffTrees action count 0
27 silly decomposeActions action count 0
28 silly runTopLevelLifecycles Starting
29 silly install runPreinstallTopLevelLifecycles
30 silly rollbackFailedOptional Starting
31 silly rollbackFailedOptional Finishing
32 silly runTopLevelLifecycles Finishing
33 silly install printInstalled
34 warn test@1.0.0 No description
35 verbose If you need help, you may report this error at:
35 verbose <https://github.com/npm/npm/issues>
36 warn test@1.0.0 No repository field.
37 verbose If you need help, you may report this error at:
37 verbose <https://github.com/npm/npm/issues>
38 verbose stack Error: Unsupported engine for test@1.0.0: wanted: {"node":"^4.0.0"} (current: {"node":"6.8.1","npm":"4.0.1"})
38 verbose stack at checkEngine (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/npm-install-checks/index.js:13:14)
38 verbose stack at module.exports.isInstallable (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/lib/install/validate-args.js:38:3)
38 verbose stack at actions.(anonymous function) (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/lib/install/actions.js:52:14)
38 verbose stack at execAction (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/lib/install/actions.js:114:7)
38 verbose stack at exports.doOne (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/lib/install/actions.js:119:3)
38 verbose stack at Array.<anonymous> (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
38 verbose stack at LOOP (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
38 verbose stack at chain (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
38 verbose stack at Object.Installer.runPreinstallTopLevelLifecycles (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/lib/install.js:535:3)
38 verbose stack at Array.<anonymous> (/home/philip/.nvm/versions/node/v6.8.1/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
39 verbose pkgid test@1.0.0
40 verbose cwd /home/philip/workspace/test
41 error Linux 3.16.0-4-amd64
42 error argv "/home/philip/.nvm/versions/node/v6.8.1/bin/node" "/home/philip/.nvm/versions/node/v6.8.1/bin/npm" "i"
43 error node v6.8.1
44 error npm v4.0.1
45 error code ENOTSUP
46 error notsup Unsupported engine for test@1.0.0: wanted: {"node":"^4.0.0"} (current: {"node":"6.8.1","npm":"4.0.1"})
47 error notsup Not compatible with your version of node/npm: test@1.0.0
48 error notsup Not compatible with your version of node/npm: test@1.0.0
48 error notsup Required: {"node":"^4.0.0"}
48 error notsup Actual: {"npm":"4.0.1","node":"6.8.1"}
49 verbose exit [ 1, true ]
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"engines": {
"node": "^4.0.0"
},
"author": "",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment