1、安装nodejs,这里推荐按照本教程来,在项目部署过程中会遇到npm install失败报err问题,问题基本上是node-sass版本太高,nodejs与node-sass版本需要对应
我本地安装的node版本为:
v14.21.3
npm版本为:
6.14.18
git clone https://gitee.com/renrenio/renren-fast-vue.git
npm install
2.1报错Failed at the chromedriver@2.27.2 install script,缺少模块,运行以下命令:
npm install chromedriver@2.27.2 --ignore-scripts
2.2报错Module build failed: Error: Cannot find module 'node-sass',运行以下命令:
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
npm install
npm run dev
成功!