美文网首页
初识renren-fast-vue

初识renren-fast-vue

作者: 一个人一匹马 | 来源:发表于2021-05-07 16:09 被阅读0次

1.本地环境配置
Node.js® 是一个基于 Chrome V8 引擎 的 JavaScript 运行时。

npm is the world's largest software registry

C:\Users\Administrator>node -v
v14.16.1

C:\Users\Administrator>npm -v
6.14.12

2.设置npm国内镜像

npm config set registry http://registry.npm.taobao.org/

3.下载renren-fast-vue

git clone https://gitee.com/renrenio/renren-fast-vue.git

4.vscode 打开renren-fast-vue项目
5.命令行执行安装 下载依赖

npm install

6.报错

gyp verb check python checking for Python executable "python2" in the PATH

7.解决方案

将 package.json文件中的 "node-sass"版本改为4.14.1
再运行
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
最后在npm install

8.运行项目

npm run dev

9.项目正常运行

相关文章

网友评论

      本文标题:初识renren-fast-vue

      本文链接:https://www.haomeiwen.com/subject/frtedltx.html