npm HTTP proxy All In One
npm HTTP proxy All In One
HTTP reverse proxy / HTTP 反向代理
HTTP_PROXY
or http_proxy
environment variables
{
"name": "vue3-ts-pinia",
"private": true,
"version": "0.0.0",
"proxy": "http://localhost:8888/",
"scripts": {
"test": "vite",
"start": "open http://localhost:3000/ && npm test",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
},
"dependencies": {
"pinia": "^2.0.13",
"vue": "^3.2.25"
},
"devDependencies": {
"@types/node": "^17.0.25",
"@vitejs/plugin-vue": "^2.3.1",
"sass": "^1.50.1",
"typescript": "^4.5.4",
"vite": "^2.9.2",
"vue-tsc": "^0.29.8"
}
}
https://docs.npmjs.com/cli/v8/using-npm/config#proxy
https://docs.npmjs.com/cli/v8/using-npm/config#https-proxy
https://docs.npmjs.com/cli/v8/using-npm/config#noproxy
http-proxy
https://www.npmjs.com/package/http-proxy
refs
https://stackoverflow.com/questions/7559648/is-there-a-way-to-make-npm-install-the-command-to-work-behind-proxy
?xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有??xgqfrms, 禁止转载 ???,侵权必究??!