## 升級
```
npm install -g npm
```
### 安裝cnpm
```
npm install -g cnpm --registry=https://registry.npm.taobao.org
```
c即China, 使用中國服務器,安裝速度比較快。
### 安裝模塊
1. 全局安裝
```
npm install -g 模塊名
```
默認的路徑
C:\Users\XXXX\AppData\Roaming\npm\node_modules
2. 局部安裝
```
npm install 模塊名
```
3. 安裝并寫入 package.json的”dependencies”中
```
npm install 模塊名 –save
```
4. 安裝并寫入package.json的”devDependencies”
```
npm install 模塊名 –save-dev
```
### 卸載模塊
1. 全局卸載
```
npm uninstall -g 模塊名
```
2. 當前項目卸載
```
npm uninstall 模塊名
```
## 查看安裝的模塊
查看安裝的全局模塊
```
npm list --depth=0 -global
```
或者
```
npm list --depth=0 -g
```
## 模塊安裝位置
```
npm config list
npm config set prefix "D:\Program Files\nodejs\node_global"
npm config set cache "D:\Program Files\nodejs\node_cache"
```
## 其他選項
`npm i 模組名 -S`
* i install 安裝
* -S --save ,寫入到 dependencies 對象
* -D --save-dev , 寫入到 devDependencies 對象
* -g 全局安裝
- 引入篇
- 基礎篇
- 快速入手
- 名詞解釋
- Vue語法
- Vue安裝
- Vue實例
- 模板語法
- 計算屬性和偵聽器
- Class與Style綁定
- 條件渲染
- 列表渲染
- 事件處理
- 表單輸入綁定
- 組件基礎
- 進階篇
- 常用模塊
- 單文件組件
- 快速學會Vue Router路由
- Vue Route 進階使用
- Vuex 與狀態管理
- Axios
- Mock.js
- data數據顯示在頁面
- Vue生命周期
- Vue按需加載組件
- 國際化
- 頁面加載進度條 -NProgress
- 自定義主題顏色
- 開發篇
- Vue入門——創建并運行一個Vue項目
- Vue + Element UI 項目創建
- 使用Vue ui項目創建工具在網頁中創建Vue項目
- Vue項目創建入門實例
- Vue CLI
- 創建項目
- 使用Visual Studio Code 開發Vue項目
- 高級篇
- 組件深入
- Vue+Element
- Vue + ElementUI 主題顏色切換
- 工具篇
- 在線代碼編輯器
- 開發工具(IDE,集成開發環境)
- npm(JavaScript包管理工具)介紹
- Node.js(npm)在Windows下安裝
- webpack介紹
- webpack快速實例
- webpack
- 快速入門實例
- 安裝
- 概念
- Nodejs
- 基礎
- npm
- 命令參考
- 命令
- 模塊安裝
- Babel
- 問題解決篇
- ERROR Failed to get response from https://registry.yarnpkg.com/vue-cli-version -marker
- Vue常見問題
- You are using the runtime-only build of Vue where the template compiler is not
- yarn 報unable to get local issuer certificate
- yarn There appears to be trouble with your network connection. Retrying
- Expected Boolean, got String with value "true".
- 項目篇
- 項目創建
- 項目設計
- 頁面
- 開發問題
- 后端
- Spring Boot + Activiti 工作流框架搭建之一
- Spring Boot + Activiti 工作流框架搭建之二
- 工作流
- Java流程框架
- Activiti
- 頁面風格
- green
- blue
- orange
- 參考篇
- 好的Git項目
- Vue的在線js
- 指令
- 開發說明
- JavaScript 高級
- export和import
- JS模塊化規范對比以及在Node.js的實現
- Storage
- ES2015
- scss
- CSS、Sass、SCSS