安装nodejs给我一个错误 - 对于以太坊

时间:2017-11-20 04:29:52

标签: node.js ethereum

我正在尝试根据我正在观看的视频安装nodejs(安装以太坊),我收到了错误消息。我也试过使用(sudo -i),但它仍然给我一个错误 - 见下文。

任何帮助都将不胜感激。

npm install -g ethereumjs-testrpc
/usr/local/bin/testrpc -> /usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js
  

fsevents@1.1.3 install / usr / local / lib / node_modules / ethereumjs-testrpc / node_modules / fsevents   节点安装

sh:node:command not found

  

uglifyjs-webpack-plugin@0.4.6 postinstall / usr / local / lib / node_modules / ethereumjs-testrpc / node_modules / uglifyjs-webpack-plugin   node lib / post_install.js

sh: node: command not found
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/ethereumjs-testrpc/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! uglifyjs-webpack-plugin@0.4.6 postinstall: `node lib/post_install.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the uglifyjs-webpack-plugin@0.4.6 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

1 个答案:

答案 0 :(得分:0)

Node.js的

sudo apt-get update
sudo apt-get install nodejs

NPM

sudo apt-get install npm