我正在使用来自 https://github.com/tj/n 的 Node 版本管理
$ node --version
v4.2.4
$ npm --version
1.3.1
我已经删除了我的 node_modules 并尝试运行 $npm install
但我收到警告消息,例如
npm WARN engine postcss@5.0.13: wanted: {"node":">=0.12"} (current: {"node":"v0.10.25","npm":"1.3.10"})
我已经更新了我的 packages.json 以包括:
"engineStrict" : true,
"engines": {
"node": "4.2.4"
},
非常感谢任何建议
我错过了什么
最佳答案
我需要打开一个新的终端窗口以使设置生效。
关于node.js - 安装模块时使用错误版本的nodejs版本管理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34481282/