[英]how to install Strongloop api in node.js and can use loopback
When Installing strongloop api in node.js with npm install -g strongloop command it gives error and slc file is not genrated and after that i can not use slc loopback command. 当使用npm install -g strongloop命令在node.js中安装strongloop api时,它给出了错误,并且未生成slc文件,此后,我将无法使用slc loopback命令。
Is there any solution for this errors and can use this strongloop. 有没有针对此错误的解决方案,可以使用此Strongloop。
errors:
29646 error Error: ENOENT, open 'C:\Users\Daffolap-203\AppData\Roaming\npm\node_modules\strongloop\node_modules\strong-pm\node_modules\strong-supervisor\node_modules\strong-cluster-control\node_modules\rc\README.md'
29647 error If you need help, you may report this *entire* log,
29647 error including the npm and node versions, at:
29647 error <http://github.com/npm/npm/issues>
29648 error System Windows_NT 6.1.7601
29649 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "strongloop"
29650 error cwd D:\piyush\loopback
29651 error node -v v0.10.31
29652 error npm -v 1.4.23
29653 error path C:\Users\Daffolap-203\AppData\Roaming\npm\node_modules\strongloop\node_modules\strong-pm\node_modules\strong-supervisor\node_modules\strong-cluster-control\node_modules\rc\README.md
29654 error code ENOENT
29655 error errno 34
29656 verbose exit [ 34, true ]
Piyush, PIYUSH,
If you want to use LoopBack but run into installation errors please use the following workaround: 如果要使用LoopBack但遇到安装错误,请使用以下解决方法:
$ npm install -g yo
$ npm install -g generator-loopback
Then, instead of slc loopback
, use yo loopback
instead, including for all the generators, for example yo loopback:model
. 然后,使用
yo loopback
代替slc loopback
,包括所有生成器,例如yo loopback:model
。 For more information on Yeoman, see http://yeoman.io/ . 有关Yeoman的更多信息,请参见http://yeoman.io/ 。
hth 心连心
What is your node and npm version 您的节点和npm版本是什么
$ node -v
$ npm -v
Can you check to see if you have the right privs to install globally. 您可以检查一下是否具有在全球范围内安装的privs。 You could try a simple module to make sure like
您可以尝试一个简单的模块以确保
$ npm install -g semver
$ semver -h
Also the errors above are incomplete and not really helpful, if you could provide full console logs on pastebin/gist or send us an email callback[at]strongloop.com that would be great. 另外,如果您可以在pastebin / gist上提供完整的控制台日志,或者在[strong] strongloop.com上向我们发送电子邮件回调,那上面的错误是不完整的,并没有真正的帮助。 thanks
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.