# 情境解套-部署Hexo npm ERR!ERR!ERR! 部署到Hexo終端機使用指令為 ```$ npm install hexo-cli -g``` 結果出現錯誤  經過各種折騰,網路上各種搜尋相關解法真的不行 砍掉node重載還是不行呵呵真的呵呵 最後在大神們的協助下終於解套了~~~ 來看看錯誤訊息 :::warning 'proxy' config is set properly. ::: 中間大混戰錯過一些可紀錄分享的, 但大致上想分享的是,如果已經試過大部分網上分享的方法都無法解套的話 考慮跟我一樣改一下proxy的設定 基本上 proxy的設定,不應該要設定,但不知道為何我的現在是有被設定 沒關係我們就來移除吧  ``` $npm config get registry #看它跑出啥 我的是這串http://proxy.company.com:8080/ 但我不要這個 ``` ``` $npm config set registry https://registry.npmjs.org/ $npm config delete proxy $npm config delete https-proxy ``` 這邊做了幾項更改設定並移除proxy、https-proxy的設定(應該不要有設定) 最後執行!```$npm install -g hexo-cli```   終於!!!太美好了我要繼續去處理部落格了再見 ###### tags: `情境解套`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up