出于性能原因,我一直将 Steroids 视为 PhoneGap 的替代品。我试过通过终端安装它,但我真的不知道我在做什么。:)
我已经浏览了文档,但是当我运行 this: 时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