溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

npm install semantic-ui安裝失敗

發(fā)布時(shí)間:2020-08-08 12:28:03 來源:網(wǎng)絡(luò) 閱讀:1681 作者:臭臭粑粑 欄目:web開發(fā)

今天用npm安裝semantic-ui時(shí),提示如下錯(cuò)誤:

Microsoft Windows [Version 10.0.17134.648]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\myproject

c:\myproject>npm install semantic-ui --save
npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! request to https://registry.npmjs.org/semantic-ui failed, reason: write EPROTO 17148:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:252:
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\admin\AppData\Roaming\npm-cache\_logs\2019-04-16T02_28_41_082Z-debug.log

Google了一把,沒找到任何跟這個(gè)有關(guān)的信息。問了做開發(fā)的同事,說有可能是proxy問題,這才想起來,公司電腦訪問外網(wǎng)是要走proxy的,于是設(shè)置了代理,完美解決問題。在此記錄一下npm如何設(shè)置proxy的方法:
打開CMD,安裝下面的格式根據(jù)自己的實(shí)際情況設(shè)置proxy

$ npm config set proxy http://username:password@proxyserver:port
$ npm config set https-proxy http://username:pawword@proxyserver:port

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI