简体   繁体   English

npm install:“ bower install”退出,错误代码为1

[英]npm install: 'bower install' exited with error code 1

I want to programm widgets for XBee ZigBee Cloud Kit . 我想为XBee ZigBee Cloud Kit编程小部件。

To do it, I need first to set up everything. 为此,我需要首先设置所有内容。 I'm using this guide . 我正在使用本指南

After failing repeatedly the automated setup I started the Manual setup . 在自动设置反复失败之后,我开始了手动设置 I did install the Requirements . 我确实安装了Requirements So everything so far went good until the last point: npm install . 因此,到目前为止一切都很好,直到最后一点: npm install I'm getting the following error bower install' exited with error code 1 . 我收到以下bower install' exited with error code 1 I'm not sure what to do, I'm not used to PowerShell or any other shell. 我不确定该怎么办,我不习惯使用PowerShell或任何其他Shell。 After failing the installing I get this errors: 安装失败后,出现以下错误:

bower justgauge#* ECMDERR Failed to execute "git ls-remote --tags --heads git://github.c om/oscarcv/justgage.git", exit code of #128 fatal: remote error: bower justgauge#* ECMDERR无法执行“ git ls-remote --tags --heads git://github.c om / oscarcv / justgage.git”,退出代码#128致命:远程错误:
Repository not found. 找不到存储库。

Additional error details: fatal: remote error: Repository not found. 其他错误详细信息:致命:远程错误:找不到存储库。

'bower install' exited with error code 1 退出“ bower安装”,错误代码为1

npm ERR! npm ERR! Windows_NT 6.1.7601 npm ERR! Windows_NT 6.1.7601 npm错误! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i nstall" argv“ C:\\ Program Files \\ nodejs \\\\ node.exe”“ C:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ bin \\ npm-cli.js”“ i nstall”

npm ERR! npm ERR! node v0.12.4 节点v0.12.4

npm ERR! npm ERR! npm v2.10.1 npm v2.10.1

npm ERR! npm ERR! code ELIFECYCLE 代码ELIFECYCLE

npm ERR! npm ERR! xbee-zigbee-cloud-kit@1.0.0 postinstall: node postinstall.js xbee-zigbee-cloud-kit@1.0.0安装后: node postinstall.js

npm ERR! npm ERR! Exit status 1 退出状态1

npm ERR! npm ERR!

npm ERR! npm ERR! Failed at the xbee-zigbee-cloud-kit@1.0.0 postinstall script 'node postinstall.js'. 在xbee-zigbee-cloud-kit@1.0.0的安装后脚本'node postinstall.js'处失败。

npm ERR! npm ERR! This is most likely a problem with the xbee-zigbee-cloud-kit package, 这很可能是xbee-zigbee-cloud-kit软件包的问题,

npm ERR! npm ERR! not with npm itself. 不与npm本身。 npm ERR! npm ERR! Tell the author that this fails on your system: 告诉作者这在您的系统上失败:

npm ERR! npm ERR! node postinstall.js npm ERR! 节点postinstall.js npm错误! You can get their info via: 您可以通过以下方式获取其信息:

npm ERR! npm ERR! npm owner ls xbee-zigbee-cloud-kit npm owner ls xbee-zigbee-cloud-kit

npm ERR! npm ERR! There is likely additional logging output above. 上面可能还有其他日志记录输出。

npm ERR! npm ERR! Please include the following file with any support request: 请在任何支持请求中包括以下文件:

npm ERR! npm ERR! C:\\Users\\steim\\Desktop\\XBeeZigBeeCloudKit-master\\npm-debug.log C:\\ Users \\用户steim \\桌面\\ XBeeZigBeeCloudKit主\\ NPM-的debug.log

"This is most likely a problem with the xbee-zigbee-cloud-kit package" “这很可能是xbee-zigbee-cloud-kit软件包的问题”

If this is true, in that case I don't know what to do, because I work with this package. 如果是这样,那我就不知道该怎么做,因为我使用的是这个软件包。

This is the npm-debug.log . 这是npm-debug.log (Sorry I can't post the whole log, too many characters). (很抱歉,我无法发布整个日志,字符太多)。

I'm using a company laptop: 我正在使用公司的笔记本电脑:

  • Latitude D820 纬度D820
  • Windows 7 32 Bit Windows 7 32位
  • Windows PowerShell with Administration Windows PowerShell管理

I'm grateful for any kind of help. 我很感谢您的帮助。 I'm getting headache trying to figure it out. 我很头疼想弄清楚。

I could solve it. 我可以解决。 And can now run the app now localy. 现在就可以在本地运行该应用了。

I did this steps to solve the issue: 我执行了以下步骤来解决该问题:

  1. Deleting justgage in bower.json file. bower.json文件中删除justgage
  2. Using commandline: bower install justgage-official 使用命令行: bower install justgage-official
  3. Using commandline: bower update 使用命令行: bower update

The only problem is actually I can't start with foreman start (but it's another issue), instead I use python manage.py runserver 0.0.0.0:5000 . 唯一的问题是实际上我不能以foreman start (但这是另一个问题),而是使用python manage.py runserver 0.0.0.0:5000 After that in browser: http://localhost:5000 之后在浏览器中: http://localhost:5000

Thanks Etan Reisner for the hint and thanks Oscar Costoya for guiding me. 感谢Etan Reisner的提示,也感谢Oscar Costoya指导我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM