【发布时间】:2017-07-19 09:14:27
【问题描述】:
我正在使用 Windows 8.1 64 位并使用来自 nodejs.org 的 Windows Installer 安装 npm。每次我输入 npm 命令时,它总是显示此消息: 'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" 前缀 -g' 未被识别为内部或外部命令,可运行的程序或批处理文件。
Error while running npm “prefix -g is not recognized as an internal or external command” 没有解决我的问题
节点-v
v6.10.0
npm -v
'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" 前缀 -g' 不是 识别为内部或外部命令、可运行程序或 批处理文件。
3.10.10
npm config 获取注册表
'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" 前缀 -g' 不是 识别为内部或外部命令、可运行程序或 批处理文件。
【问题讨论】: