简体   繁体   English

安装节点检查器时遇到问题

[英]Facing an issue while installing node-inspector

Since Yesterday I was stack due to below npm issue. 从昨天开始,由于下面的npm问题,我一直处于堆栈状态。

  1. when I run npm --version it's returning 'CALL "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\\\node_modules\\npm\\bin\\npm-cli.js" prefix -g' is not recognized as an internal or external command,operable program or batch file. 2.15.8 当我运行npm --version它返回'CALL "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\\\node_modules\\npm\\bin\\npm-cli.js" prefix -g' is not recognized as an internal or external command,operable program or batch file. 2.15.8 'CALL "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\\\node_modules\\npm\\bin\\npm-cli.js" prefix -g' is not recognized as an internal or external command,operable program or batch file. 2.15.8

  2. When I try to run node-inspector , it's returning 当我尝试运行node-inspector ,它正在返回

CALL "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" prefix -g' is not recognized as an internal or external command, operable program or batch file. CALL“ C:\\ Program Files \\ nodejs \\ node.exe”“ C:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ bin \\ npm-cli.js”前缀-g'无法识别为内部或外部命令,可操作程序或批处理文件。

v8-debug@0.7.7 preinstall D:\\Practice\\loopbackPractice\\EMployeeDetails\\node_modules\\node-inspector\\node_modules\\v8-debug node -e 'process.exit(0)' v8-debug@0.7.7预安装D:\\ Practice \\ loopbackPractice \\ EMployeeDetails \\ node_modules \\ node-inspector \\ node_modules \\ v8-debug node -e'process.exit(0)'

v8-profiler@5.6.5 preinstall D:\\Practice\\loopbackPractice\\EMployeeDetails\\node_modules\\node-inspector\\node_modules\\v8-profiler node -e 'process.exit(0)' v8-profiler@5.6.5预安装D:\\ Practice \\ loopbackPractice \\ EMployeeDetails \\ node_modules \\ node-inspector \\ node_modules \\ v8-profiler节点-e'process.exit(0)'

npm ERR! npm ERR! Windows_NT 6.1.7601 npm ERR! Windows_NT 6.1.7601 npm错误! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-inspector" npm ERR! argv“ C:\\ Program Files \\ nodejs \\ node.exe”“ C:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ bin \\ npm-cli.js”“安装”“ node-inspector” npm ERR! node v4.4.7 npm ERR! 节点v4.4.7 npm ERR! npm v2.15.8 npm ERR! npm v2.15.8 npm错误! file C:\\Windows\\system32\\cmd.exe; 文件C:\\ Windows \\ system32 \\ cmd.exe; npm ERR! npm ERR! path C:\\Windows\\system32\\cmd.exe; 路径C:\\ Windows \\ system32 \\ cmd.exe; npm ERR! npm ERR! code ELIFECYCLE npm ERR! 代码ELIFECYCLE npm ERR! errno ENOENT npm ERR! errno ENOENT npm ERR! syscall spawn C:\\Windows\\system32\\cmd.exe; syscall生成C:\\ Windows \\ system32 \\ cmd.exe;

npm ERR! npm ERR! v8-debug@0.7.7 preinstall: node -e 'process.exit(0)' npm ERR! v8-debug@0.7.7预安装: node -e 'process.exit(0)' -e'process.exit node -e 'process.exit(0)' npm ERR! spawn C:\\Windows\\system32\\cmd.exe; 产生C:\\ Windows \\ system32 \\ cmd.exe; ENOENT npm ERR! ENOENT npm ERR! npm ERR! npm ERR! Failed at the v8-debug@0.7.7 preinstall script 'node -e 'process.exit(0)''. 在v8-debug@0.7.7的预安装脚本'node -e'process.exit(0)''上失败。 npm ERR! npm ERR! This is most likely a problem with the v8-debug package, npm ERR! 这很可能是v8-debug软件包npm ERR的问题! not with npm itself. 不与npm本身。 npm ERR! npm ERR! Tell the author that this fails on your system: npm ERR! 告诉作者这在您的系统上失败:npm ERR! node -e 'process.exit(0)' npm ERR! 节点-e'process.exit(0)'npm错误! You can get information on how to open an issue for this project with: npm ERR! 您可以通过以下方式获取有关如何为此项目打开问题的信息:npm ERR! npm bugs v8-debug npm ERR! npm错误v8调试npm错误! Or if that isn't available, you can get their info via: npm ERR! 或者,如果不可用,则可以通过以下方式获取其信息:npm ERR! npm ERR! npm ERR! npm owner ls v8-debug npm ERR! npm owner ls v8-debug npm ERR! There is likely additional logging output above. 上面可能还有其他日志记录输出。

npm ERR! npm ERR! Please include the following file with any support request: npm ERR! 请在支持请求中包含以下文件:npm ERR! D:\\Practice\\loopbackPractice\\EMployeeDetails\\npm-debug.log` D:\\ Practice \\ loopbackPractice \\ EMployeeDetails \\ npm-debug.log`

I have reinstalled and tried again still same kind of issue. 我已经重新安装并再次尝试了同样的问题。 These issues are facing after I try to install node-gyp 我尝试安装node-gyp后面临这些问题

can anyone help me 谁能帮我

Thanks 谢谢

如果您的系统变量具有“ com spec ”,只需将其删除即可,一切正常!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM