[英]after installation angular is not working on my windows 10 home
when i gone to this folder it contain all the files but ng codes are not working kindly help me to releif from this当我转到此文件夹时,它包含所有文件,但 ng 代码无法正常工作,请帮助我摆脱困境
C:\Users\raj&sakthi>ng -v
'sakthi\AppData\Roaming\npm\' is not recognized as an internal or external command,
operable program or batch file.
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module 'C:\Users\raj\node_modules\@angular\cli\bin\ng.js'
[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:746:27)[39m
[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)[39m
[90m at internal/main/run_main_module.js:17:47[39m {
code: [32m'MODULE_NOT_FOUND'[39m,
requireStack: []
}
C:\Users\raj&sakthi>node -v
v14.17.3
C:\Users\raj&sakthi>npm -v
6.14.13 ```
try installing Angular CLI globally:尝试全局安装 Angular CLI:
npm install -g @angular/cli
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.