- 运行准备
下载nodejs长期支持版[10.16.3](https://nodejs.org/dist/v10.16.3/node-v10.16.3-x64.msi)
安装: 双击666
win10 升级: 将新的LTS的msi文件,放在和之前的目录下便可
- nodejs 官网离线地址
wget https://nodejs.org/dist/v12.16.3/node-v12.16.3-linux-x64.tar.gz && \
tar xf node-v12.16.3-linux-x64.tar.gz -C /usr/local/ && \
cd /usr/local/ && mv node-v12.16.3-linux-x64 nodejs-v12.16.3 && \
ln -s /usr/local/nodejs-v12.16.3/bin/node /usr/local/bin && \
ln -s /usr/local/nodejs-v12.16.3/bin/npm /usr/local/bin && \
cd - && node -v && npm -v
- 更换安装包的源
```
npm install -g cnpm --registry=https://registry.npm.taobao.org
node -v
cnpm -v
```
[淘宝源](http://npm.taobao.org/)
## Project setup
```
//安装项目依赖
cnpm install
```
### Compiles and hot-reloads for development
```
//启动开发模式
npm run start
```
### Compiles and minifies for production
```
//打包生产代码
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```