npm 安装 Angular 脚手架
npm Angular 大约 705 字安装
-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
阅读 1274 · 发布于 2021-06-18
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
软考-系统架构设计师:DNS 协议阅读 3130
-
单例双重校验为什么还要加 volatile阅读 463
-
OpenResty 使用 ngx.timer.at 完成异步日志记录阅读 4630
-
IDEA Skipped breakpoint because it happened inside debugger evaluation阅读 1101
-
MySQL 中文全文检索 ngram 处理停止词阅读 3824
-
Charles 抓包工具下载,安装及破解阅读 1135
-
Windows WSL 能 ping 通但 curl 无响应阅读 1311
-
数据结构:平衡二叉树阅读 688
-
Android 获取状态栏高度阅读 3006
-
Android 使用 CountDownTimer 类进行倒计时阅读 1437