[英]Angular:bash: /usr/local/lib/node_modules/@angular/cli/bin/ng: No such file or directory
for some reason, ng-v,ng-version,ng v doesn't work for me;does anyone can help?出于某种原因,ng-v,ng-version,ng v 对我不起作用;有人可以帮忙吗? ng v -bash: /usr/local/lib/node_modules/@angular/cli/bin/ng: No such file or directory ng v -bash: /usr/local/lib/node_modules/@angular/cli/bin/ng: 没有这样的文件或目录
i already installed angular/cli;node js and npm;我已经安装了 angular/cli;node js 和 npm; everything looks fine;一切看起来都很好;
├── @angular/cli@9.1.0 ├── jsonfile@6.0.1 └── npm-check-updates@4.1.1 ├── @angular/cli@9.1.0 ├── jsonfile@6.0.1 └── npm-check-updates@4.1.1
i install and remove angular multiple times already;nothing change;我已经多次安装和删除 angular;没有任何变化;
also,I try to fix it with the code below, it shows the file exists;somehow doesn't work for ng-v另外,我尝试用下面的代码修复它,它显示文件存在;不知何故不适用于 ng-v
ln -s /usr/local/Cellar/node/12.16.1/lib/node_modules/angular-cli/bin/ng /usr/local/bin/ng ln: /usr/local/bin/ng: File exists ln -s /usr/local/Cellar/node/12.16.1/lib/node_modules/angular-cli/bin/ng /usr/local/bin/ng ln: /usr/local/bin/ng: 文件存在
Could you please try >ng --version as I don't see this, you trying from your message.你能试试 >ng --version 因为我没有看到这个,你从你的消息中尝试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.