简体   繁体   中英

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 -bash: /usr/local/lib/node_modules/@angular/cli/bin/ng: No such file or directory

i already installed angular/cli;node js and npm; everything looks fine;

├── @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;

also,I try to fix it with the code below, it shows the file exists;somehow doesn't work for 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

Could you please try >ng --version as I don't see this, you trying from your message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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