简体   繁体   English

Angular:bash: /usr/local/lib/node_modules/@angular/cli/bin/ng: 没有这样的文件或目录

[英]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.

相关问题 EACCES:权限被拒绝,打开'/usr/local/lib/node_modules/npm/bin/npm-cli.js' - EACCES: permission denied, open '/usr/local/lib/node_modules/npm/bin/npm-cli.js' 错误:EACCES:权限被拒绝,访问'/usr/local/lib/node_modules/ANGULAR - ERROR: EACCES: permission denied, access '/usr/local/lib/node_modules/ ANGULAR 节点预gyp ERR! 堆栈错误:无法执行'/usr/local/bin/node /usr/local/lib/node_modules - node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules EACCES:权限被拒绝,mkdir '/usr/local/lib/node_modules/react-native-cli' - EACCES: permission denied, mkdir '/usr/local/lib/node_modules/react-native-cli' npm安装/ usr / local / lib / node_modules /中的所有模块 - npm installs all modules in /usr/local/lib/node_modules/ 错误:ENOENT,没有这样的文件或目录'/ usr / lib / nodejs:/ usr / lib / node_modules:/ usr / share / javascript / app / models - Error: ENOENT, no such file or directory '/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript/app/models node.js模块:/ usr / local / lib / node_modules / fpm / bin / iffront:49:“语法错误:意外的令牌”” - node.js modules: /usr/local/lib/node_modules/fpm/bin/iffront:49: “SyntaxError: Unexpected token )” React Native CLI,找不到模块'/usr/local/lib/node_modules/react-native-cli/node_modules/prompt/lib/prompt' - React Native CLI, Cannot find module '/usr/local/lib/node_modules/react-native-cli/node_modules/prompt/lib/prompt' 在 mac 中缺少对 /usr/local/lib/node_modules 的写访问权限 - Missing write access in mac to /usr/local/lib/node_modules -bash: /usr/local/bin/npm: 没有那个文件或目录 - -bash: /usr/local/bin/npm: No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM