win 7 npm 安装ruby,grunt都会报错,问题如下。
发布于 10 年前 作者 limerickgds 7956 次浏览 最后一次编辑是 8 年前 来自 问答

0 info it worked if it ends with ok 1 verbose cli [ ‘C:\Program Files\nodejs\\node.exe’, 1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’, 1 verbose cli ‘install’, 1 verbose cli ‘-g’, 1 verbose cli ‘ruby’ ] 2 info using npm@2.5.1 3 info using node@v0.12.0 4 verbose node symlink C:\Program Files\nodejs\node.exe 5 silly cache add args [ ‘ruby’, null ] 6 verbose cache add spec ruby 7 silly cache add parsed spec { raw: ‘ruby’, 7 silly cache add scope: null, 7 silly cache add name: ‘ruby’, 7 silly cache add rawSpec: ‘’, 7 silly cache add spec: '’, 7 silly cache add type: ‘range’ } 8 verbose addNamed ruby@ 9 silly addNamed semver.valid null 10 silly addNamed semver.validRange * 11 silly addNameRange { name: ‘ruby’, range: ‘*’, hasData: false } 12 silly mapToRegistry name ruby 13 silly mapToRegistry using default registry 14 silly mapToRegistry registry https://registry.npmjs.org/ 15 silly mapToRegistry uri https://registry.npmjs.org/ruby 16 verbose addNameRange registry:https://registry.npmjs.org/ruby not in flight; fetching 17 verbose request uri https://registry.npmjs.org/ruby 18 verbose request no auth needed 19 info attempt registry request try #1 at 15:19:26 20 verbose request id 756d0809cea3557d 21 http request GET https://registry.npmjs.org/ruby 22 http 404 https://registry.npmjs.org/ruby 23 verbose headers { date: ‘Thu, 19 Mar 2015 07:19:48 GMT’, 23 verbose headers server: ‘CouchDB/1.5.0 (Erlang OTP/R16B03)’, 23 verbose headers etag: ‘“C3VGJ2FUDHYFN7WQXNGDO9Q7G”’, 23 verbose headers ‘content-type’: ‘application/json’, 23 verbose headers ‘cache-control’: ‘max-age=0’, 23 verbose headers ‘content-length’: ‘410’, 23 verbose headers ‘accept-ranges’: ‘bytes’, 23 verbose headers via: ‘1.1 varnish’, 23 verbose headers age: ‘0’, 23 verbose headers ‘x-served-by’: ‘cache-hkg6824-HKG’, 23 verbose headers ‘x-cache’: ‘MISS’, 23 verbose headers ‘x-cache-hits’: ‘0’, 23 verbose headers ‘x-timer’: ‘S1426749586.993799,VS0,VE1032’, 23 verbose headers vary: ‘Accept’, 23 verbose headers connection: ‘close’ } 24 silly get cb [ 404, 24 silly get { date: ‘Thu, 19 Mar 2015 07:19:48 GMT’, 24 silly get server: ‘CouchDB/1.5.0 (Erlang OTP/R16B03)’, 24 silly get etag: ‘“C3VGJ2FUDHYFN7WQXNGDO9Q7G”’, 24 silly get ‘content-type’: ‘application/json’, 24 silly get ‘cache-control’: ‘max-age=0’, 24 silly get ‘content-length’: ‘410’, 24 silly get ‘accept-ranges’: ‘bytes’, 24 silly get via: ‘1.1 varnish’, 24 silly get age: ‘0’, 24 silly get ‘x-served-by’: ‘cache-hkg6824-HKG’, 24 silly get ‘x-cache’: ‘MISS’, 24 silly get ‘x-cache-hits’: ‘0’, 24 silly get ‘x-timer’: ‘S1426749586.993799,VS0,VE1032’, 24 silly get vary: ‘Accept’, 24 silly get connection: ‘close’ } ] 25 verbose stack Error: Registry returned 404 for GET on https://registry.npmjs.org/ruby 25 verbose stack at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:244:14) 25 verbose stack at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:178:14) 25 verbose stack at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:344:22) 25 verbose stack at Request.emit (events.js:110:17) 25 verbose stack at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1239:14) 25 verbose stack at Request.emit (events.js:129:20) 25 verbose stack at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1187:12) 25 verbose stack at IncomingMessage.emit (events.js:129:20) 25 verbose stack at _stream_readable.js:908:16 25 verbose stack at process._tickCallback (node.js:355:11) 26 verbose statusCode 404 27 verbose pkgid ruby 28 verbose cwd C:\Users\guods 29 error Windows_NT 6.1.7601 30 error argv “C:\Program Files\nodejs\\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “-g” "ruby" 31 error node v0.12.0 32 error npm v2.5.1 33 error code E404 34 error 404 Registry returned 404 for GET on https://registry.npmjs.org/ruby 34 error 404 34 error 404 ‘ruby’ is not in the npm registry. 34 error 404 You should bug the author to publish it (or use the name yourself!) 34 error 404 34 error 404 Note that you can also install from a 34 error 404 tarball, folder, http url, or git url. 35 verbose exit [ 1, true ]

6 回复

ruby要自己去下载安装的吧,用Npm安装ruby,不知道楼主怎么想的

@chapgaga 恩,我现在貌似代理配置总是不成功。不知道什么情况,以前那个旧的版本的node就可以用。

@limerickgds 弄node,不需要依赖ruby吧? 别装也没事啊

@chapgaga 是的,公司代理出问题了,我安装一些插件都不成功,刚刚公司代理可以了。谢谢回复

@chapgaga 我是想用sass,才想着安装ruby。

回到顶部