出于性能原因,我一直把类固醇作为PhoneGap的替代品。我试过通过终端机安装它,但我不知道我在做什么。:)
我已经看过了文档,但是当我运行这个:steroids create TestApp时,我得到了这个错误:steroids: command not found。
此外,在安装Node.js并运行此行:npm install steroids -g之后,它将输出如下所示的行:
npm http GET https://registry.npmjs.org/steroids
npm http 304 https://registry.npmjs.org/steroids最后,我明白了:
npm ERR! fetch failed https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.1.14.tgz
npm ERR! fetch failed https://registry.npmjs.org/minimatch/-/minimatch-0.2.9.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/MyUser/npm-debug.log
npm ERR! not ok code 0我不知道这是怎么回事,所以如果你需要更多的细节,请告诉我。:)我做错什么了吗?谢谢!
编辑:在运行脚本时,我也会得到这个错误:npm ERR! registry error parsing json
发布于 2013-11-04 22:44:27
这是因为国家预防机制登记册目前(截至2013年11月4日,东部时间下午5:44)下降。您可以在他们的状态页上检查状态。
https://stackoverflow.com/questions/19778370
复制相似问题