# 配置(建立node_cache和資料夾node_global)
npm config set cache=d:\program files\nodejs\node_cache
npm config set prefix=d:\program files\nodejs\node_global
npm config set registry=
#npm config set registry=
# 驗證
npm config get registry
# 或npm info express
# 配置系統path:
d:\program files\nodejs\node_global\node_modules
d:\program files\nodejs\node_global
+ categoryinfo : securityerror: (:) ,pssecurityexception
+ fullyqualifiederrorid : unauthorizedaccess
set-executionpolicy remotesigned -scope process
npm 4080錯誤 node_modules\.staging或(error: eperm: operation not permitted, unlink…)(最好管理員執行)
npm cache verify
npm install ***
其它說法,都試了,不好用
1.刪除node modules中的全部檔案。
2.清除npm快取。(npm cache clean --force)
3.刪除package-lock.json
gyp verb check python checking for python executable "python2" in the path
缺少python2.7支援 可快速使用以下語句完成安裝(謹慎執行,會安裝一堆東西,如果想解除安裝先uninstall,然後在系統中解除安裝軟體)
npm install --global --production windows-build-tools
npm err! e:\git\cmd\git.exe ls-remote -h -t git:
git config --global url."https://".insteadof git://
github上拉去**執行 npm install報錯code:128
npm err! code 128
npm err! command failed: d:\program files\git\cmd\git.exe clone --mirror -q git:
git config --global http.sslverify "false"
配置git 為vscode的終端
1、點開終端
2、左下角的齒輪,選擇設定
3、設定終端未git的bash.exe
「terminal.integrated.shell.windows」: 「c:\program files\git\bin\bash.exe」
4.重啟,ok
開發中遇到的vue問題總結
1.使用axios迴圈呼叫介面,解決批量刪除 移動 建立等的批量操作 let list 迴圈呼叫介面 let result list.map item 使用promise.all方法等待所以非同步任務執行結束 promise.all result then data catch err 2.vue中...
安裝cocoapods遇到的問題總結
安裝好了以後 執行rvm requirements 這時,rvm會針對當前系統安裝一些依賴,為之後安裝ruby做好準備。我在執行這個過程中強制中斷,後來再次執行就一直報錯過不了,這時可以開啟rvm的檢錯功能,讓它把詳細錯誤資訊列印出來。rvm autolibs enable rvm autolibs...
vue 配置環境遇到的問題總結
之前vue的官網上對於vue cli腳手架搭建環境是這樣的幾步 npm install global vue cli vue init webpack my project cd my project npm install npm run dev 之前通過這幾步順利地配置好了vue的開發環境,可是...