鍍金池/ 問答/Linux/ atom 安裝atom-beautify 報(bào)錯(cuò)

atom 安裝atom-beautify 報(bào)錯(cuò)

安裝沒反應(yīng) 比如linter-jshint這個(gè)插件

圖片描述

安裝報(bào)錯(cuò) 比如atom-beautify這個(gè)插件

圖片描述

有的插件會(huì)安裝成功 比如file-type-icons這個(gè)插件

圖片描述

還有這種方法(官網(wǎng)clone到本地) 只是無限的等待,那個(gè)時(shí)間一直再漲

圖片描述
圖片描述

和上面是同一種方法,只是載體不一樣 報(bào)錯(cuò)見圖。報(bào)錯(cuò)信息付在下

圖片描述

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/atom-message-panel failed, reason: connect ETIMEDOUT 151.101.72.162:443
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead


圖2的意思是我npm版本太低?但是我的版本是新的(前幾天官網(wǎng)裝的)
圖片描述

圖2的報(bào)錯(cuò)信息我coye了下來:請(qǐng)各位大仙給點(diǎn)意見。

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Users\\lushx\\AppData\\Local\\atom\\app-1.21.2\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\lushx\\AppData\\Local\\atom\\app-1.21.2\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\lushx\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\lushx\\.atom\\.apmrc" "install" "C:\\Users\\lushx\\AppData\\Local\\Temp\\d-117109-11548-126jdpu.flqwbl0udi\\package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10

npm ERR! shasum check failed for C:\Users\lushx\AppData\Local\Temp\npm-12012-47d0d84d\registry.npmjs.org\rx-lite\-\rx-lite-4.0.8.tgz
npm ERR! Expected: 0b1e11af8bc44836f04a6407e92da42467b79444
npm ERR! Actual:   67add1f3d93c4b62cc283ffa574358dd995c77a1
npm ERR! From:     https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\lushx\AppData\Local\Temp\apm-install-dir-117109-11548-n85km4.z7ngynwmi\npm-debug.log

回答
編輯回答
我不懂

主要有兩種方法。我兩種都試了,成功了一種:
首先確保npm nodejs atom都是在官網(wǎng)下載得最新版。
方法一
要有VPN,在這個(gè)文件夾下C:Userslushx.atom新增.atomrc文件。編輯為:

strict-ssl=false
http-proxy="http://localhost:8123"
https-proxy="http://localhost:8123"

(這里的設(shè)置有可能不一樣,若不行,參考源文件設(shè)置)
打開cdm ,輸入命令apm install --check當(dāng)輸出done時(shí)表示可以安裝了。接下來輸apm install 插件名,輸出為done時(shí)表示安裝成功。
第二種方法我問題中提到了。我沒成功(衰).
圖片描述

其實(shí)就是這樣,多試試方法。

2018年3月8日 03:01
編輯回答
朽鹿

用了 vpn ?如果用了,關(guān)掉你的VPN再試試,npm注冊(cè)源設(shè)為淘寶的npm config set registry http://registry.cnpmjs.org。

2017年12月5日 14:12