npm WARN checkPermissions Missing write access to C:\Users\zhang\AppData\Roaming\npm\node_modules\@a
npm WARN checkPermissions Missing write access to C:\Users\zhang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\camelcase
npm WARN checkPermissions Missing write access to C:\Users\zhang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\kind-of
npm WARN checkPermissions Missing write access to C:\Users\zhang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\fsevents
npm WARN checkPermissions Missing write access to C:\Users\zhang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\source-map
npm ERR! path C:\Users\zhang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\camelcase
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'C:\Users\zhang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\camelcase'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR!C:\Users\zhang\AppData\Roaming\npm-cache\_logs\2018-09-03T06_37_14_187Z-debug.log
===================================================================================
以上错误是重新全局安装angular-cli的时候出现的:
npm uninstall -g @angular/cli
npm cache verify
npm install -g @angular/cli@6.1.5 -save-dev
解决方法:
1)删除原有的node_modules文件夹,即C:\Users\zhang\AppData\Roaming\npm\node_modules
【npm WARN checkPermissions Missing write access to C:\Users\zhang\AppData\Roaming\npm\node_modules\@a】2)重新执行安装命令:npm install -g @angular/cli@6.1.5 -save-dev
推荐阅读
- JavaScript|web前端入门到实战(好用的Js图表库)
- 接口访问加密方式
- 实用技术|Chrome 技术篇-常用web调试手法(清除缓存并硬性重新加载)
- 有关easyUI的拖动操作中droppable,draggable用法例子
- web前端|CSS科技感四角边框
- ColorBox 演示和说明/API
- SUI 列表 底部无限滚动
- js把时间戳转化为时间
- js jq获取标签的各种方式整理
- WEB前端|用HTML5canvas绘制一个圆环形的进度表示