atom 安装atom-beautify 报错

安装没反应 比如linter-jshint这个插件

图片描述

安装报错 比如atom-beautify这个插件

图片描述

有的插件会安装成功 比如file-type-icons这个插件

图片描述

还有这种方法(官网clone到本地) 只是无限的等待,那个时间一直再涨

图片描述
图片描述

和上面是同一种方法,只是载体不一样 报错见图。报错信息付在下

图片描述

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版本太低?但是我的版本是新的(前几天官网装的)
图片描述

图2的报错信息我coye了下来:请各位大仙给点意见。

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

阅读 4.1k
2 个回答

主要有两种方法。我两种都试了,成功了一种:
首先确保npm nodejs atom都是在官网下载得最新版。
方法一
要有VPN,在这个文件夹下C:Userslushx.atom新增.atomrc文件。编辑为:

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

(这里的设置有可能不一样,若不行,参考源文件设置)
打开cdm ,输入命令apm install --check当输出done时表示可以安装了。接下来输apm install 插件名,输出为done时表示安装成功。
第二种方法我问题中提到了。我没成功(衰).
图片描述

其实就是这样,多试试方法。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏