角Cli安装问题。前缀-g'不被识别为内部或外部命令

时间:2019-08-08 10:37:19

标签: angular npm node-modules npm-install

我是新手。在使用npm i -g @ angular / cli下载它时,我遇到了实现电话telephony-nodejs的错误;

npm -v命令显示此错误

'CALL "node" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,

我安装了节点的12.版本。我一切都处于管理模式。

'''
> node ./bin/postinstall/script.js

npm ERR! file C:\Users\Aniket Bhunia\Desktop\fulfillment-telephony-nodejs;
npm ERR! path C:\Users\Aniket Bhunia\Desktop\fulfillment-telephony-nodejs;
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Users\Aniket Bhunia\Desktop\fulfillment-telephony-nodejs;
npm ERR! @angular/cli@8.2.0 postinstall: `node ./bin/postinstall/script.js`
npm ERR! spawn C:\Users\Aniket Bhunia\Desktop\fulfillment-telephony-nodejs; ENOENT
npm ERR!
npm ERR! Failed at the @angular/cli@8.2.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
'''

0 个答案:

没有答案