npm安裝和簡單使用(win centos7)

# securitydoc

- 運行準備  

    下載nodejs長期支持版[10.16.3](https://nodejs.org/dist/v10.16.3/node-v10.16.3-x64.msi)

    centos7之nodejs[10.16.3](https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-arm64.tar.gz)

    安裝,雙擊666

- 更換安裝包的源  

```

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

```

[淘寶源](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

```

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章