Windows安装cnpm报错 The operation was rejected by your operating system.

Windows在安装cnpm时出现如下错误

在这里插入图片描述

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.

网上的方法都试过了,不可用,我安装的nodejs版本是v14.21.3,直接执行npm i -g cnpm会出现如上错误,可尝试降低安装版本

npm i -g cnpm@8目前最新版本是9.x,尝试安装npm 8.x版本,如果不行继续降@7 @6等

在这里插入图片描述

相关推荐

  1. vue项目cnpm i

    2023-12-24 00:20:04       34 阅读
  2. [BUG]Windows安装WSL

    2023-12-24 00:20:04       49 阅读
  3. windows 安装 tensorflow 说 C++

    2023-12-24 00:20:04       27 阅读
  4. Windows安装electron卡住的问题

    2023-12-24 00:20:04       43 阅读
  5. 安装Paddlehub

    2023-12-24 00:20:04       62 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-24 00:20:04       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-24 00:20:04       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-24 00:20:04       87 阅读
  4. Python语言-面向对象

    2023-12-24 00:20:04       96 阅读

热门阅读

  1. 自动驾驶数据集waymo

    2023-12-24 00:20:04       68 阅读
  2. 自然语言处理阅读第三弹

    2023-12-24 00:20:04       57 阅读
  3. 网络架构与协议

    2023-12-24 00:20:04       40 阅读
  4. 武汉灰京文化市场推广的巧妙策略

    2023-12-24 00:20:04       65 阅读
  5. leetCode算法—14. 最长公共前缀

    2023-12-24 00:20:04       66 阅读
  6. hyperf 十八 数据库 一

    2023-12-24 00:20:04       56 阅读
  7. 考研英语语法(二十三)

    2023-12-24 00:20:04       54 阅读
  8. Git常用命令

    2023-12-24 00:20:04       61 阅读