Kibana npm安装错误

时间:2016-01-14 12:57:20

标签: node.js

我尝试在Linux(ubuntu)上安装Kibana 4,并在通过npm install安装时出现错误(npm --version显示 1.3.10 )。我从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$ 

2 个答案:

答案 0 :(得分:0)

好的,我明白了。我不得不更新Node,因为它不适用于旧版本。

Ubuntu的包管理器不想升级(即apt-get没有给我更新的版本)所以我将符号链接从nodejs移除node并安装/usr/local/bin网站上的节点,并创建符号链接到新安装的版本。

现在可行。

答案 1 :(得分:-1)

Kibana 4要求:

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

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

或尝试kibana 3.x