npm install: 'bower install' 已退出,错误代码为 1

npm install: 'bower install' exited with error code 1

我想为 XBee ZigBee Cloud Kit 编写小部件。

为此,我需要先设置所有内容。 我正在使用这个 guide.

在自动设置反复失败后,我开始了手动设置。我确实安装了 Requirements。所以到目前为止一切顺利,直到最后一点:npm install。我收到以下错误 bower install' exited with error code 1。我不确定该怎么做,我不习惯 PowerShell 或任何其他 shell。 安装失败后我得到这个错误:

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:
Repository not found.

Additional error details: fatal: remote error: Repository not found.

'bower install' exited with error code 1

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

npm ERR! node v0.12.4

npm ERR! npm v2.10.1

npm ERR! code ELIFECYCLE

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

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the xbee-zigbee-cloud-kit@1.0.0 postinstall script 'node postinstall.js'.

npm ERR! This is most likely a problem with the xbee-zigbee-cloud-kit package,

npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system:

npm ERR! node postinstall.js npm ERR! You can get their info via:

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

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR! C:\Users\steim\Desktop\XBeeZigBeeCloudKit-master\npm-debug.log

"This is most likely a problem with the xbee-zigbee-cloud-kit package"

如果这是真的,那么我不知道该怎么办,因为我正在使用这个包。

这是npm-debug.log。 (对不起,我不能 post 整个日志,字符太多)。

我使用的是公司笔记本电脑:

我很感激任何形式的帮助。想弄明白我很头疼。

我可以解决。现在可以 运行 本地应用了。

我按照以下步骤解决了这个问题:

  1. 正在删除 bower.json 文件中的 justgage
  2. 使用命令行:bower install justgage-official
  3. 使用命令行:bower update

唯一的问题是实际上我不能从 foreman start 开始(但这是另一个问题),而是使用 python manage.py runserver 0.0.0.0:5000。之后在浏览器中:http://localhost:5000

感谢 Etan Reisner 的提示并感谢 Oscar Costoya 的指导。