繁体   English   中英

Kibana NPM安装错误

[英]Kibana npm install error

我尝试在Linux(ubuntu)上安装Kibana 4,并通过npm installnpm --version显示1.3.10npm install时出现错误。 我从github签出了Kibana4源码。

看来安装程序找不到最新的spalger/numeral软件包,但是如果我执行npm install numeral它将安装一些数字软件包,但显然不是正确的软件包。 我想我对NPM不够了解,无法完成这项工作,因此我正在这里寻找想法。

它在中间输出了一堆成功的东西:

npm http GET https://registry.npmjs.org/source-map/0.4.4
npm http 404 https://registry.npmjs.org/spalger/angular-bootstrap/0.12.1
npm ERR! 404 'spalger' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.13.0-62-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/mike/code/kibana4
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! code E404
npm http 404 https://registry.npmjs.org/spalger/filesaver/1.1.2
npm http 404 https://registry.npmjs.org/spalger/leaflet-draw/0.2.3

然后,它输出更多一堆东西,在底部:

npm http 304 https://registry.npmjs.org/sinon/1.17.2
npm http GET https://registry.npmjs.org/spalger/numeral
npm http 404 https://registry.npmjs.org/spalger/numeral
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR!     at /usr/share/npm/lib/cache.js:675:5
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR!     at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-62-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/mike/code/kibana4
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/mike/code/kibana4/npm-debug.log
npm ERR! not ok code 0
mike@mike-VirtualBox:~/code/kibana4$ 

我试图只安装数字包:

npm install @spalger/numeral我也收到一个错误:

mike@mike-VirtualBox:~/code/kibana4$ npm install @spalger/numeral
npm http GET https://registry.npmjs.org/spalger/numeral
npm http 404 https://registry.npmjs.org/spalger/numeral
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR!     at /usr/share/npm/lib/cache.js:675:5
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR!     at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-62-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "@spalger/numeral"
npm ERR! cwd /home/mike/code/kibana4
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/mike/code/kibana4/npm-debug.log
npm ERR! not ok code 0
mike@mike-VirtualBox:~/code/kibana4$ 

好,我知道了。 我必须更新Node,因为它不适用于旧版本。

Ubuntu的软件包管理器不想升级(即apt-get并没有给我更新的版本),因此我从/usr/local/bin删除了到nodejsnode的符号链接,从网站上安装了node并创建了到新的符号链接。已安装的版本。

现在可以了。

Kibana 4要求:

 "engines": {
    "node": "0.12.9",
    "npm": "2.14.3"
  }

只需更新您的节点和/或npm

或者尝试kibana 3.x

暂无
暂无

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

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