拉取GitHub项目安装依赖出现的问题
1.安装依赖的时候报了错
Failed at the node-sass@4.14.1 postinstall script. npm ERR! This is probably not a problem with npm.
用淘宝的数据源吧
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
这时候安装依赖 npm install
提示需要更新,用下面的指令更新吧
npm install -g npm
2.node 版本的问题,来降到指定版本吧
node 版本查询可以用 node -v
安装指定的node版本
sudo n v14.18.1