天天看點

vue 環境安裝 及配置 vue.js vscode

1.代碼編輯器安裝:

https://code.visualstudio.com/Download

1.1傻瓜式安裝一直下一步就好
           

2node.js 運作輔助

http://nodejs.cn/download/

安裝成功後

vue 環境安裝 及配置 vue.js vscode

2.1安裝cnpm

在安裝好的node.js目錄下建立兩個檔案夾  node_global  node_cache
           
vue 環境安裝 及配置 vue.js vscode
2.2在cmd中設定全局路徑 就是剛在檔案夾的全路徑
           
vue 環境安裝 及配置 vue.js vscode
2.3安裝cnpm  npm install -g cnpm --registry=https://registry.npm.taobao.org
           
vue 環境安裝 及配置 vue.js vscode
2.4安裝好了後兩個檔案夾
           
vue 環境安裝 及配置 vue.js vscode
vue 環境安裝 及配置 vue.js vscode

我的這步不好使 去掉這步 直接進入路徑 然後執行cnpm -v就好使了

2.5配置環境變量 cnpm  
 編輯系統變量path
 把 node_global 檔案夾的位置配置進去
           
vue 環境安裝 及配置 vue.js vscode
vue 環境安裝 及配置 vue.js vscode

大功告成

繼續閱讀