国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

npm install 報錯 ‘proxy‘ config is set properly. See: ‘npm help config‘

這篇具有很好參考價值的文章主要介紹了npm install 報錯 ‘proxy‘ config is set properly. See: ‘npm help config‘。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

問題:使用 npm install 初始化項目依賴失敗,報錯 'proxy' config is set properly. See: 'npm help config'
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/vue-ref failed, reason: connect ETIMEDOUT 104.16.20.35:443
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/dom-closest failed, reason: connect ETIMEDOUT 104.16.22.35:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dengzemiao/.npm/_logs/2022-11-14T04_51_31_564Z-debug.log
1、先查找一下自己的代理
$ npm config get proxy
$ npm config get npm config get https-proxy
$ npm config get registry
2、然后將代理和緩存置空

方式一:

$ npm config set proxy false
$ npm cache clean --force

方式二:文章來源地址http://www.zghlxwxcb.cn/news/detail-513753.html

$ npm config set proxy null
$ npm config set https-proxy null
3、配置新的鏡像源,選一個就行
# 淘寶源(推薦)
$ npm config set registry http://registry.npm.taobao.org/

# 官方源
$ npm config set registry http://registry.npmjs.org/
$ npm config set registry https://registry.npmjs.org/

# cnpm 源
$ npm config set registry https://registry.cnpmjs.org/
# 如果使用 cnpm,注意是否安裝了 cnpm,cnpm 走推薦走的也是淘寶源
$ npm install -g cnpm --registry=https://registry.npm.taobao.org/

到了這里,關(guān)于npm install 報錯 ‘proxy‘ config is set properly. See: ‘npm help config‘的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • git: ‘lfs‘ is not a git command. see ‘git --help‘

    在克隆hugging face里面的項目文件的時候,需要用到git lfs,本文介紹安裝git lfs方法 到這個鏈接里面下載最新的安裝包即可 參考鏈接:https://stackoverflow.com/questions/48734119/git-lfs-is-not-a-git-command-unclear

    2024年02月13日
    瀏覽(36)
  • git: ‘lfs‘ is not a git command. See ‘git --help‘的解決方案

    git: ‘lfs‘ is not a git command. See ‘git --help‘的解決方案

    ??大家好,我是愛編程的喵喵。雙985碩士畢業(yè),現(xiàn)擔(dān)任全棧工程師一職,熱衷于將數(shù)據(jù)思維應(yīng)用到工作與生活中。從事機(jī)器學(xué)習(xí)以及相關(guān)的前后端開發(fā)工作。曾在阿里云、科大訊飛、CCF等比賽獲得多次Top名次?,F(xiàn)為CSDN博客專家、人工智能領(lǐng)域優(yōu)質(zhì)創(chuàng)作者。喜歡通過博客創(chuàng)作

    2024年02月11日
    瀏覽(16)
  • git安裝后報git: ‘remote-https‘ is not a git command. See ‘git --help‘.

    1. 問題說明 ????使用的是linux系統(tǒng),采用編譯安裝的方式進(jìn)行安裝,安裝完成clone項目后提示“git: ‘remote-https’ is not a git command. See ‘git --help’.” 2. 問題解決 ????需要安裝1個額外的庫:libcurl4-openssl-dev ????安裝完成后再將git重新編譯安裝,然后再Clone項目,搞定!

    2024年02月03日
    瀏覽(20)
  • 下載node-gyp依賴包報錯:gyp ERR! find VS msvs_version not set from command line or npm config

    下載node-gyp依賴包報錯:gyp ERR! find VS msvs_version not set from command line or npm config

    you need to install the lastest version of version of Visual Studio 你需要下載最新的Visual Studio 找到GitHub地址:https://github.com/nodejs/node-gyp 下載Vistual Studio鏈接:https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=BuildTools 不要立刻就去選擇c++桌面開發(fā),這樣下載的會是Vistual Stu

    2024年02月09日
    瀏覽(30)
  • 解決npm install 時出現(xiàn)的.git can‘t be found (see https://git.io/Jc3F9)問題

    問題: 今天使用webstream npm instatll 之后報錯 .git can‘t be found (see https://git.io/Jc3F9) 原因 一般來說就是你使用ws打開的文件夾位置中不是 .git 文件夾的所在的文件夾相同的位置 舉個例子就是: 你的 .git 文件在路徑 /a/b 而你現(xiàn)在用ws打開的項目在 /a/b/c 中導(dǎo)致的, 解決方案, 建議不要

    2024年04月25日
    瀏覽(27)
  • QianBase MPP配置資源組報錯cgroup is not properly configured

    在QianBase MPP中希望從默認(rèn)的資源隊列模式修改為資源組模式,通過以下命令設(shè)置為資源組模式, qbmconfig -c qb_resource_manager -v “group” 但是卻遇到以下報錯 根據(jù)報錯信息判斷,可能是因為cgroup未正常配置。根據(jù)報錯提示查看/sys/fs/cgroup/cpu/qbdb/發(fā)現(xiàn)此目錄并不存在,因此說明c

    2024年02月11日
    瀏覽(16)
  • vscode報錯解決:npm ERR! Missing script: “dev“ npm ERR! npm ERR! To see a list of scripts, run:

    vscode報錯解決:npm ERR! Missing script: “dev“ npm ERR! npm ERR! To see a list of scripts, run:

    詳細(xì)的報錯信息如下圖所示, 仔細(xì)閱讀報錯信息發(fā)現(xiàn),是因為沒有Script腳本\\\"dev\\\"而報錯,讓你看看script列表然后再運(yùn)行npm run命令。 打開package.json文件,找到scripts列表,將其中的“server”改為“dev”,如下圖所示, 這樣再運(yùn)行npm run dev命令就可以正常運(yùn)行了。最后,希望能幫

    2024年02月03日
    瀏覽(19)
  • npm install 提示 “ 1 package is looking for funding“

    執(zhí)行 npm install 提示 1 package is looking for funding , 執(zhí)行了 npm fund 重新執(zhí)行 npm install 仍然出現(xiàn)該提示。該提示不是報錯,而是開發(fā)者尋求捐贈支持。 可以使用 npm install --no-fund 跳過該提示。 參考文檔:https://www.cnblogs.com/sjj33sda/p/13952527.html

    2024年02月11日
    瀏覽(19)
  • 已配置vue.config.js中的proxy代理,前端本地環(huán)境仍然請求后端出現(xiàn)跨域報錯

    已配置vue.config.js中的proxy代理,前端本地環(huán)境仍然請求后端出現(xiàn)跨域報錯 已配置vue.config.js中的proxy代理,前端本地環(huán)境仍然請求后端出現(xiàn)跨域報錯 控制臺仍然出現(xiàn)cors禁止報錯,接口調(diào)不通 配置proxy代理解決跨域問題的原理是: 前端工程本地環(huán)境會啟動一個 express 或 koa 的

    2024年02月01日
    瀏覽(30)
  • npm install(報錯)

    npm install(報錯)

    1、npm install 報錯(如圖) 2、使用npm install --legacy-peer-deps WARN ERESOLVE overriding peer dependency npm WARN While resolving: @intervolga/optimize-cssnano-plugin@1.0.6 npm WARN Found: webpack@3.12.0 npm WARN node_modules/webpack npm WARN ? peer webpack@\\\"^2.0.0 || ^3.0.0 || ^4.0.0\\\" from @soda/friendly-errors-webpack-plugin@1.7.1 npm WARN ?

    2024年01月23日
    瀏覽(22)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包