老师,但是我用node10版本就无论怎样都无法成功安装cnpm,报错如下,清理内存配置环境变量什么的都试了下还是不行。但是用node16就能顺利安装
PS C:\Users\admin\Desktop\vue-imooc-ebook> npm install -g cnpm --registry=https://registry.npm.taobao.org
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm ERR! path C:\Users\admin\AppData\Roaming\nvm\v10.10.0\node_global\node_modules\cnpm\node_modules\npm\node_modules\.node-gyp.DELETE\node_modules\@npmcli
npm ERR! code EPERM
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 (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\nvm\v10.10.0\node_cache\_logs\2023-04-16T03_03_11_250Z-debug.log