1、卸载现在的vue npm uninstall vue-cli -g 2、升级vue至最新版本 npm install -g @vue/cli 3、运行vue -V 查看版本是否更新 vue -V2、下载node 10.0以上版本
1、node以往版本地址:https://nodejs.org/zh-cn/download/releases/
https://nodejs.org/zh-cn/download/releases/
2、找到所需版本点击下载,进入下载页面,点击node-v16.8.0-x64.msi(下载自己需要的版本) 下载安装
3、安装成功以后 cmd 运行 node -v 查看版本
node -v3、npm run dev 报错:Cannot find module ‘node-sass’
安装 node-sass报错 Can’t find Python executable “python”,然后进行一下操作
1、cmd 管理员运行 npm install --global --production windows-build-tools 2、安装 npm install --global node-gyp 以上都运行成功但是还是报错 Can't find Python executable "python", you can set the PYTHON env variable 3、最后运行:npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ 可以正常启动项目了 疑问:我的所有项目都可以npm install 成功了,也可以运行。但是我安装镜像node-sass只在一个项目中安装了,其他几个项目都是报错python,我并没有去安装 node-sass 。这儿有点不太清楚是怎么回事儿



