安装“node-red-contrib-freeboard”时出错

时间:2017-12-05 16:41:49

标签: node.js npm raspberry-pi3 node-red freeboard

我已经成功安装了node-red。它工作正常, 但现在我想安装“node-red-contrib-freeboard”。

但是当我点击我的节点红色根目录中的“npm install node-red-contrib-freeboard”命令时,我收到此错误:

node-red-contrib-freeboard@0.0.7 postinstall /root/.node-red/node_modules/node-red-contrib-freeboard
> node rewritefiles.js

{ Error: ENOENT: no such file or directory, open 'node_modules/freeboard/index.html'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'node_modules/freeboard/index.html' }
{ Error: ENOENT: no such file or directory, open 'node_modules/freeboard/js/freeboard.js'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'node_modules/freeboard/js/freeboard.js' }
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'node_modules/freeboard/plugins/thirdparty/jquery.keyframes.min.js'
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-red-contrib-freeboard@0.0.7 postinstall: `node rewritefiles.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-red-contrib-freeboard@0.0.7 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-12-05T16_35_42_862Z-debug.log

请帮助我让它运行。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

看起来与版本0.0.7

有关

https://github.com/urbiworx/node-red-contrib-freeboard/issues/28

尝试安装以前的版本,看看问题是否仍然存在。检查github问题,看看它何时被纠正。