Django-16-安装前端项目

一、安装

启动前端项目:

1、安装nodejs

2、安装淘宝cnpm
https://developer.aliyun.com/mirror/NPM

执行如下命令:
npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install安装项目

3、如果安装过程中报如下错:
To install it, you can run: npm install --save vue-runtime-helpers
执行如下命令:
npm install --save vue-runtime-helpers

4、启动项目
打开terminal,执行如下命令:
npm run serve

安装之后hrun -V查看版本号

 

如果安装报错,先删掉node_modules,再执行npm install

参考:https://stackoverflow.com/questions/58579843/how-to-solve-vue-cli-service-is-not-recognized-as-an-internal-or-external-comm

 

npm install -g cnpm --registry=https://registry.npm.taobao.org报错

https://blog.csdn.net/qq_36853469/article/details/99900961

原文地址:https://www.cnblogs.com/erchun/p/14508207.html