我是节点js的新手。我尝试使用seneca框架运行我的第一个节点微服务。但它显示以下错误
try {
drawable = Resources.getSystem().getDrawable(R.drawable.icon);
} catch (NotFoundException e) {
e.printStackTrace();
}
我使用Seneca.js Yeoman生成器来创建这个项目。请有人帮助我。
我的项目主题看起来像以下结构
> npm ERR! Linux 4.2.0-16-generic
>
> npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "start"
>
> npm ERR! node v5.10.1
>
> npm ERR! npm v3.8.6
>
> npm ERR! code ELIFECYCLE
>
> npm ERR! myproject@0.0.1 start: `node server.js`
>
> npm ERR! Exit status 2
>
> npm ERR!
>
> npm ERR! Failed at the myproject@0.0.1 start script 'node server.js'.
>
> npm ERR! Make sure you have the latest version of node.js and npm
> installed.
>
> npm ERR! If you do, this is most likely a problem with the myproject
> package,
>
> npm ERR! not with npm itself.
>
> npm ERR! Tell the author that this fails on your system:
>
> npm ERR! node server.js
>
> npm ERR! You can get information on how to open an issue for this
> project with:
>
> npm ERR! npm bugs myproject
>
> npm ERR! Or if that isn't available, you can get their info via:
>
> npm ERR! npm owner ls myproject
>
> npm ERR! There is likely additional logging output above.
>
>
> npm ERR! Please include the following file with any support request:
>
> npm ERR! ~/Desktop/micro services/myproject/npm-debug.log
我的package.json是
test-seneca
|
|-- client
| |-- css
| |-- js
| |-- partials
| |-- index.html
|-- server
| |-- api.js
|-- test
| |-- functional
|-- bower.json
|-- package.json
|-- server.js
答案 0 :(得分:1)
它失败的原因是因为yeoman
生成器无法安装依赖项但是无提示失败。
如果查看package.json
,您可以看到seneca-auth
和seneca
的依赖关系指向不存在的回购。请更新这些内容,然后再次运行npm install
。
修改强>
我建议你不使用这个yeoman
生成器。它已过时,并且可能在您的节点版本上失败。