需要帮助安装bitcoincore?

时间:2017-06-09 18:33:02

标签: node.js npm

我一直收到此错误

npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\eze samuel\package.json'
npm WARN eze samuel No description
npm WARN eze samuel No repository field.
npm WARN eze samuel No README data
npm WARN eze samuel No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bitcore"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! bitcore-node@3.1.3 preinstall: `./scripts/download`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bitcore-node@3.1.3 preinstall script './scripts/download'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bitcore-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./scripts/download
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bitcore-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bitcore-node
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\eze samuel\npm-debug.log

1 个答案:

答案 0 :(得分:2)

bitcore库明确告诉您全局安装:

  

启动整个节点并加入网络:

npm install -g bitcore
bitcored

请注意命令中的-g标志。目前,您正在运行npm install bitcore,但由于您尝试在没有package.json文件的情况下进行本地安装,因此会失败。如果您未使用-g进行安装,那么在安装任何内容之前,必须先运行npm init。在这种情况下,您 -g一起安装,因此请逐步按照文档进行操作,复制完全他们告诉您的内容。