人人开源前端项目启动各种问题
创始人
2024-05-29 17:10:52

背景

下面是一个开源的前端项目,想把它跑起来,真是难啊

过程

## 安装

#安装 node.js

https://nodejs.org/en/

安装到E:\softdev\nodejs

主要是使用它的npm命令,它类似java中的maven管理,可以管理包

#安装完后,可查看版本: cmd:

C:\Users\Administrator>node -v

v18.14.2

#设置npm的淘宝镜像

E:\softdev\nodejs>npm config set registry https://registry.npm.taobao.org/

#查看镜像是否设置成功

E:\softdev\nodejs>npm config get registry

https://registry.npm.taobao.org/

PS E:\study\java_study\demo-proj\renren-fast-vue-master> npm install

下载完后的信息会在 E:\study\java_study\demo-proj\renren-fast-vue-master\mode_modules中显示

E:\study\java_study\demo-proj\renren-fast-vue-master> npm install

说明安装好了

up to date in 2s

运行:

E:\study\java_study\demo-proj\renren-fast-vue-master> npm run dev

过程会遇到各种问题,比如python等各种问题。

解决方法

将node的版本改降到V12.9.0 ,然后 npm i npm run dev

最开始用的当时最高版本V18.14.2 ,最后参考前端同事的版本,就可以了。

相关内容

热门资讯

最强版hhpkoer辅助器视频... 最强版hhpkoer辅助器视频,xpoker辅助工具,都是有挂(存在有挂)能透视中分为三种模型:模拟...
最强版哈糖大菠萝怎么开挂,we... 最强版哈糖大菠萝怎么开挂,wepoker有辅助工具吗,都是是真的有挂(有挂解密)1、有没有辅助教程、...
鹰眼预警:恒为科技营业收入下降 Hehson财经上市公司研究院|财报鹰眼预警8月30日,恒为科技发布2026年半年度报告。报告显示,...
最强版steampokerma... 最强版steampokermaster辅助,模拟器打开hhpoker,竟然真的是有挂(存在有挂)1、...
鹰眼预警:中信博经营活动净现金... Hehson财经上市公司研究院|财报鹰眼预警8月30日,中信博发布2026年半年度报告。报告显示,公...