鍍金池/ 問答/Python  HTML/ RAP2 安裝問題

RAP2 安裝問題

安裝的軟件地址: https://github.com/thx/rap2-d...
git clone下載后,運(yùn)行npm install報(bào)以下錯(cuò)誤

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

npm ERR! System Linux 2.6.32-431.23.3.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /rap2-delos
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR! type non_object_property_load
npm http 404 https://registry.npmjs.org/ty...
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR! at next (/usr/lib/node_modules/npm/lib/cache.js:687:35)
npm ERR! at /usr/lib/node_modules/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR! at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/...
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-431.23.3.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /rap2-delos
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR! type non_object_property_load
npm http 404 https://registry.npmjs.org/ty...
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR! at next (/usr/lib/node_modules/npm/lib/cache.js:687:35)
npm ERR! at /usr/lib/node_modules/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR! at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/...
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-431.23.3.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /rap2-delos
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR! type non_object_property_load
npm http 404 https://registry.npmjs.org/ty...
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR! at next (/usr/lib/node_modules/npm/lib/cache.js:687:35)
npm ERR! at /usr/lib/node_modules/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR! at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/...
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-431.23.3.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /rap2-delos
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR! type non_object_property_load
npm http 404 https://registry.npmjs.org/ty...
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR! at next (/usr/lib/node_modules/npm/lib/cache.js:687:35)
npm ERR! at /usr/lib/node_modules/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR! at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/...
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-431.23.3.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /rap2-delos
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR! type non_object_property_load
npm http 404 https://registry.npmjs.org/ty...
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR! at next (/usr/lib/node_modules/npm/lib/cache.js:687:35)
npm ERR! at /usr/lib/node_modules/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR! at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/...
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-431.23.3.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /rap2-delos
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR! type non_object_property_load
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /rap2-delos/npm-debug.log
npm ERR! not ok code 0

請(qǐng)問有沒有人部署過個(gè)這個(gè)應(yīng)用?以上問題是什么原因?怎么解決?

回答
編輯回答
遺莣

1、首先確定你裝了node(里面會(huì)有npm)
2、我用npm也會(huì)報(bào)錯(cuò),但跟你報(bào)的錯(cuò)不一樣。

cnpm install

安裝成功
實(shí)在不是獲取管理員權(quán)限在運(yùn)行一下

2018年7月22日 06:46