npm 安装 Angular 脚手架
npm Angular About 705 words安装
-g
:全局安装
npm install -g @angular/cli
可能出现的错误
错误信息
npm ERR! code ETARGET
npm ERR! notarget No matching version found for hosted-git-info@^3.0.6
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'npm-package-arg'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\fendoudebb\AppData\Roaming\npm-cache\_logs\2021-04-14T10_07_19_824Z-debug.log
解决方法
设置的镜像是cnpmjs
的地址,更换成淘宝的地址后问题解决。
npm config set registry https://registry.npm.taobao.org
卸载
工程内卸载
npm uninstall @angular/cli
全局卸载
npm uninstall -g @angular/cli
Views: 2,128 · Posted: 2021-06-18
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...