【问题标题】:Error installing sails in windows 7在 Windows 7 中安装风帆时出错
【发布时间】:2015-05-15 06:29:32
【问题描述】:

我在安装风帆时遇到以下错误

> sails@0.11.0 preinstall E:\jb\npmtest\node_modules\sails
> node ./lib/preinstall_npmcheck.js

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\nodejs\\\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sails"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! file C:\Windows\system32\cmd.exe;
npm ERR! path C:\Windows\system32\cmd.exe;
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Windows\system32\cmd.exe;

npm ERR! sails@0.11.0 preinstall: `node ./lib/preinstall_npmcheck.js`
npm ERR! spawn C:\Windows\system32\cmd.exe; ENOENT
npm ERR!
npm ERR! Failed at the sails@0.11.0 preinstall script 'node ./lib/preinstall_npmcheck.js'.
npm ERR! This is most likely a problem with the sails package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./lib/preinstall_npmcheck.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls sails
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     E:\jb\npmtest\npm-debug.log

我尝试安装sails 0.10 我收到此错误

npm WARN deprecated grunt-lib-contrib@0.7.1: DEPRECATED. See readme: https://github.com/gruntjs/grunt-lib-contrib
\


> ws@0.4.32 install E:\jb\npmtest\node_modules\sails\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\nodejs\\\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sails@0.10"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! file C:\Windows\system32\cmd.exe;
npm ERR! path C:\Windows\system32\cmd.exe;
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Windows\system32\cmd.exe;

npm ERR! ws@0.4.32 install: `(node-gyp rebuild 2> builderror.log) || (exit 0)`
npm ERR! spawn C:\Windows\system32\cmd.exe; ENOENT
npm ERR!
npm ERR! Failed at the ws@0.4.32 install script '(node-gyp rebuild 2> builderror.log) || (exit 0)'.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! You can get their info via:
npm ERR!     npm owner ls ws
npm ERR! There is likely additional logging output above.

我已尝试按照此链接https://github.com/balderdashy/sails/issues/2751 的建议尝试npm cache clear 来修复此错误。但我仍然收到错误消息。

【问题讨论】:

  • 你能给我们更多的控制台输出吗?这实际上不是一个错误
  • 我已经编辑了我的问题

标签: node.js npm sails.js


【解决方案1】:

我已经通过运行命令npm install -g sails --ignore-scripts解决了这个问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-10
    • 2018-05-02
    • 2014-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多