想运行完整源码,但是npm install出错

来源:1-1 导学

qq_慕九州7147855

2023-04-14

图片描述
另外想问问npm node 版本应该多少最合适呢?

写回答

1回答

扬_灵

2023-04-15

同学你好,使用 node10-12版本都可以,建议使用cnpm,npm是国外源,在下载时容易出现丢包的情况。

0
1
qq_慕九州7147855
老师,但是我用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
2023-04-16
共1条回复

Vue 实战商业级读书Web APP完整项目

Vue全家桶+最新前端技术+前后端分离架构,完整项目流程

1610 学习 · 1951 问题

查看课程