11 verbose stack Error: 403 Forbidden - GET https://registry.npm.taobao.org/@vue%2Fcli
11 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:117:15
11 verbose stack at processTicksAndRejections (internal/process/task_queues.js:97:5)
12 verbose statusCode 403
13 verbose pkgid @vue/cli@latest
15 verbose Windows_NT 10.0.17763
16 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "@vue/cli"
17 verbose node v12.22.12
18 verbose npm v6.14.16
19 error code E403
20 error 403 403 Forbidden - GET https://registry.npm.taobao.org/@vue%2Fcli
21 error 403 In most cases, you or one of your dependencies are requesting
21 error 403 a package version that is forbidden by your security policy.
22 verbose exit [ 1, true ]
npm install安裝vue時出現的異常:
1.網絡代理已設置,檢查沒有問題。
2.strict-ssl = false 已設置。
cmd右鍵管理員,執行npm install -g @vue/cli 一直提示403的異常
Node.js command prompt 最後用這個cmd執行就成功了,不知道為什麼,記錄一下。