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



>我正在尝试根据我正在观看的视频安装 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 安装/usr/local/lib/node_modules/ethereumjs-testrpc/node_modules/fsevents 节点安装

sh:节点:未找到命令

uglifyjs-webpack-plugin@0.4.6 postinstall/usr/local/lib/node_modules/ethereumjs-testrpc/node_modules/uglifyjs-webpack-plugin 节点库/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.
节点

.js

sudo apt-get update
sudo apt-get install nodejs

新人掌

sudo apt-get install npm

相关内容

最新更新