Windows 7上的npm节点gyp安装问题

Windows 7上的npm节点gyp安装问题,windows,node.js,installation,npm,node-gyp,Windows,Node.js,Installation,Npm,Node Gyp,所以,我不知道以前出了什么问题,但解决方案是完全卸载节点并重新安装。它已经随模块一起提供了。我还没有弄明白如何使用它,因为键入node gyp不起作用 我正在尝试使用node 8.1安装node gyp(因为我必须使用此版本)。我打字的时候 npm安装-g节点gyp 我收到错误消息“SSL错误:自签名证书在链中” 我正在使用NPM1.1.33,我认为这可能是一个问题,所以我尝试通过以下方式使用npm进行升级 但是,正如你所看到的,它没有升级任何东西。所以我也试过了 npm安装npm最新版本 并

所以,我不知道以前出了什么问题,但解决方案是完全卸载节点并重新安装。它已经随模块一起提供了。我还没有弄明白如何使用它,因为键入node gyp不起作用


我正在尝试使用node 8.1安装node gyp(因为我必须使用此版本)。我打字的时候 npm安装-g节点gyp 我收到错误消息“SSL错误:自签名证书在链中”

我正在使用NPM1.1.33,我认为这可能是一个问题,所以我尝试通过以下方式使用npm进行升级

但是,正如你所看到的,它没有升级任何东西。所以我也试过了 npm安装npm最新版本 并得到以下结果:

npm http GET https://registry.npmjs.org/npm-latest
npm http 304 https://registry.npmjs.org/npm-latest
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/vcsurl
npm http 304 https://registry.npmjs.org/lodash
npm ERR! Error: No compatible version found: lodash@'^2.4.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","0.8.0","
0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0
-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","2.0.0","
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm ERR!     at installTargetsError (c:\Program Files (x86)\nodejs\node_modules\
npm\lib\cache.js:586:10)
npm ERR!     at c:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.js:464:
15
npm ERR!     at saved (c:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\npm-registry-client\lib\get.js:136:7)
npm ERR!     at c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\grac
eful-fs\graceful-fs.js:230:7
npm ERR!     at Object.oncomplete (fs.js:297:15)
npm ERR!  [Error: No compatible version found: lodash@'^2.4.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","0.8.0","
0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0
-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","2.0.0","
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]]
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files
(x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "npm-latest"
npm ERR! cwd C:\Users\Dallas Brittany
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.33
npm ERR! message No compatible version found: lodash@'^2.4.1'
npm ERR! message Valid install targets:
npm ERR! message ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0
","0.4.1","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","
0.8.0","0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2
","1.0.0-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","
2.0.0","2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm http 304 https://registry.npmjs.org/vcsurl
npm http 304 https://registry.npmjs.org/request
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Dallas Brittany\npm-debug.log
npm ERR! not ok code 0
npmhttpgethttps://registry.npmjs.org/npm-latest
npm http 304https://registry.npmjs.org/npm-latest
npm http GEThttps://registry.npmjs.org/lodash
npm http GEThttps://registry.npmjs.org/request
npm http GEThttps://registry.npmjs.org/vcsurl
npm http 304https://registry.npmjs.org/lodash
npm错误!错误:找不到兼容版本:lodash@“^2.4.1”
npm错误!有效的安装目标:
npm错误!["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
“,“0.4.2”,“0.5.0-rc.1”,“0.5.0”,“0.5.1”,“0.5.2”,“0.6.0”,“0.6.1”,“0.7.0”,“0.8.0”
0.8.1、0.8.2、0.9.0、0.9.1、0.9.2、0.10.0、1.0.0-rc.1、1.0.0-rc.2、1.0.0.0
-rc.3、1.0.0、1.0.1、1.1.0、1.1.1、1.2.0、1.2.1、1.3.0、1.3.1、2.0.0、
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm错误!安装TargetError时(c:\Program Files(x86)\nodejs\NodeU模块\
npm\lib\cache.js:586:10)
npm错误!位于c:\Program Files(x86)\nodejs\node\u modules\npm\lib\cache.js:464:
15
npm错误!保存时(c:\Program Files(x86)\nodejs\node\u modules\npm\node\u module)
es\npm注册表客户端\lib\get.js:136:7)
npm错误!位于c:\ProgramFiles(x86)\nodejs\node\u modules\npm\node\u modules\grac
完美的fs\n优雅的fs.js:230:7
npm错误!在Object.oncomplete(fs.js:297:15)
npm错误![错误:找不到兼容版本:lodash@^2.4.1'
npm错误!有效的安装目标:
npm错误![“0.1.0”、“0.2.0”、“0.2.1”、“0.2.2”、“0.3.0”、“0.3.1”、“0.3.2”、“0.4.0”、“0.4.1
“,“0.4.2”,“0.5.0-rc.1”,“0.5.0”,“0.5.1”,“0.5.2”,“0.6.0”,“0.6.1”,“0.7.0”,“0.8.0”
0.8.1、0.8.2、0.9.0、0.9.1、0.9.2、0.10.0、1.0.0-rc.1、1.0.0-rc.2、1.0.0.0
-rc.3、1.0.0、1.0.1、1.1.0、1.1.1、1.2.0、1.2.1、1.3.0、1.3.1、2.0.0、
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]]
npm错误!您可以在以下位置报告此日志:
npm错误!
npm错误!或通过电子邮件发送至:
npm错误!
npm错误!系统Windows\u NT 6.1.7601
npm错误!命令“c:\\ProgramFiles(x86)\\nodejs\\node.exe”c:\\ProgramFiles
(x86)\\nodejs\\node\u模块\\npm\\bin\\npm cli.js“安装”npm最新版本
npm错误!cwd C:\Users\Dallas-Brittany
npm错误!节点-v v0.8.1
npm错误!npm-V1.1.33
npm错误!邮件未找到兼容版本:lodash@“^2.4.1”
npm错误!消息有效安装目标:
npm错误!消息[“0.1.0”、“0.2.0”、“0.2.1”、“0.2.2”、“0.3.0”、“0.3.1”、“0.3.2”、“0.4.0
“0.4.1”、“0.4.2”、“0.5.0-rc.1”、“0.5.0”、“0.5.1”、“0.5.2”、“0.6.0”、“0.6.1”、“0.7.0”
0.8.0、0.8.1、0.8.2、0.9.0、0.9.1、0.9.2、0.10.0、1.0.0-rc.1、1.0.0-rc.2
“,“1.0.0-rc.3”,“1.0.0”,“1.0.1”,“1.1.0”,“1.1.1”,“1.2.0”,“1.2.1”,“1.3.0”,“1.3.1”
2.0.0","2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm http 304https://registry.npmjs.org/vcsurl
npm http 304https://registry.npmjs.org/request
npm错误!
npm错误!其他日志记录详细信息可在以下位置找到:
npm错误!C:\Users\Dallas-Brittany\npm-debug.log
npm错误!不正常代码0
有什么建议吗?
谢谢。

尝试清除缓存(
npm cache clear
),然后再次运行该命令。当我这样做时,我得到:npm ERR!回滚错误时出错:Enoterty,rmdir'C:\Users\Dallas Brittany\n de_modules\node gyp\node_modules的npm ERR!回滚节点时出错-gyp@0.13.1{[Error:enoterty,rmdir'C:\Use s\Dallas Brittany\node_modules\node gyp\node_modules']npm ERR!回滚错误errno:53,npm ERR!回滚错误代码:'enoterty',npm ERR!回滚错误路径:'C:\\Users\\Dallas Brittany\\node_modules\\ode gyp\\node_modules'}npm错误!错误:找不到兼容版本:ansi@“^0.3.0”…等。
npm http GET https://registry.npmjs.org/npm-latest
npm http 304 https://registry.npmjs.org/npm-latest
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/vcsurl
npm http 304 https://registry.npmjs.org/lodash
npm ERR! Error: No compatible version found: lodash@'^2.4.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","0.8.0","
0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0
-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","2.0.0","
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm ERR!     at installTargetsError (c:\Program Files (x86)\nodejs\node_modules\
npm\lib\cache.js:586:10)
npm ERR!     at c:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.js:464:
15
npm ERR!     at saved (c:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\npm-registry-client\lib\get.js:136:7)
npm ERR!     at c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\grac
eful-fs\graceful-fs.js:230:7
npm ERR!     at Object.oncomplete (fs.js:297:15)
npm ERR!  [Error: No compatible version found: lodash@'^2.4.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1
","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","0.8.0","
0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0
-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","2.0.0","
2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]]
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files
(x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "npm-latest"
npm ERR! cwd C:\Users\Dallas Brittany
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.33
npm ERR! message No compatible version found: lodash@'^2.4.1'
npm ERR! message Valid install targets:
npm ERR! message ["0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0
","0.4.1","0.4.2","0.5.0-rc.1","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.7.0","
0.8.0","0.8.1","0.8.2","0.9.0","0.9.1","0.9.2","0.10.0","1.0.0-rc.1","1.0.0-rc.2
","1.0.0-rc.3","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","
2.0.0","2.1.0","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1"]
npm http 304 https://registry.npmjs.org/vcsurl
npm http 304 https://registry.npmjs.org/request
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Dallas Brittany\npm-debug.log
npm ERR! not ok code 0