安装完Nodejs之后发现npm info vue指令没有权限运行:

C:\Users\JC>npm info vue
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:\nodejs\node_cache\_cacache
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\nodejs\node_cache\_cacache'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'D:\nodejs\node_cache\_cacache'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'D:\\nodejs\\node_cache\\_cacache'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator. npm ERR! Log files were not written due to an error writing to the directory: D:\nodejs\node_cache\_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

打开nodejs的文件夹属性可以发现他是只读文件夹,且当前用户没有写入权限



解决方法:

右键文件夹->属性->安全->高级->双击当前用户->更改权限为完全控制即可

最新文章

  1. 4、DES和RSA简介
  2. 2016年6月20日 JAVA知识框架
  3. htm5l,第一个script代码练习
  4. JavaScript使用DeviceOne开发实战(一) 配置和起步
  5. C#--析构函数
  6. 【BZOJ】1436: Poi2003 Trinomial
  7. You Only Live Once
  8. 爬网页?--Chrome帮你计算XPath
  9. Xunit
  10. node基础 --全局
  11. discuz 发布分类信息,能不能设置单版块去掉“发帖子”(默认点发帖后为自定义的默认分类信息模版)
  12. UIPickView 和 UIDatePicker
  13. 结队开发项目——七巧板NABC需求分析
  14. Javascript中函数调用和this的关系
  15. pecl安装php的ev扩展时的报错处理
  16. HDU 5889 Barricade 【BFS+最小割 网络流】(2016 ACM/ICPC Asia Regional Qingdao Online)
  17. Sql Server 服务器名称\实例名称 无法连接 Server Name\Instance Name
  18. IntelliJ IDEA中怎样使用JUnit4
  19. poj 1061 扩展欧几里德同余方程求解
  20. WPF项目学习.三

热门文章

  1. RocketMQ 5.0 vs 4.9.X 图解架构对比
  2. PostgreSQL cache lookup failed for type XXXX 错误
  3. sqlserver 循环插入脚本
  4. Anaconda 使用教程
  5. elasticsearch 内存分配设置
  6. 使用oledb读写excel出现“操作必须使用一个可更新的查询”的解决办法
  7. Python 闭包,生成式,推导式
  8. 新的学习历程-python6 字符串基础使用
  9. grafana+prometheus+tomcat 监控tomcat
  10. react lodash节流this找不到正确用法