求助:安装 remix-ide 时执行 npm start 报错
环境:ubuntu 16.04
前面的下载都顺利,但 npm start 后就报错,返回如下
[onchange]
[onchange] > remix-ide@0.7.3 onchange /home/kevin/remix-ide
[onchange] > onchange build/app.js -- npm-run-all lint
[onchange]
[serve ]
[serve ] > remix-ide@0.7.3 serve /home/kevin/remix-ide
[serve ] > execr --silent http-server .
[serve ]
[watch ]
[watch ] > remix-ide@0.7.3 watch /home/kevin/remix-ide
[watch ] > watchify src/index.js -dv -p browserify-reload -o build/app.js --exclude solc
[watch ]
[remixd ]
[remixd ] > remix-ide@0.7.3 remixd /home/kevin/remix-ide
[remixd ] > ./node_modules/remixd/bin/remixd -s ./contracts
[remixd ]
[watch ] WS server listening on 34779
[remixd ] module.js:550
[remixd ] throw err;
[remixd ] ^
[remixd ]
[remixd ] Error: Cannot find module 'serve'
[remixd ] at Function.Module._resolveFilename (module.js:548:15)
[remixd ] at Function.Module._load (module.js:475:25)
[remixd ] at Module.require (module.js:597:17)
[remixd ] at require (internal/module.js:11:18)
[remixd ] at Object.<anonymous> (/home/kevin/remix-ide/node_modules/remixd/src/services/startFrontend.js:1:77)
[remixd ] at Module._compile (module.js:653:30)
[remixd ] at Object.Module._extensions..js (module.js:664:10)
[remixd ] at Module.load (module.js:566:32)
[remixd ] at tryModuleLoad (module.js:506:12)
[remixd ] at Function.Module._load (module.js:498:3)
[remixd ] at Module.require (module.js:597:17)
[remixd ] at require (internal/module.js:11:18)
[remixd ] at Object.<anonymous> (/home/kevin/remix-ide/node_modules/remixd/bin/remixd:6:21)
[remixd ] at Module._compile (module.js:653:30)
[remixd ] at Object.Module._extensions..js (module.js:664:10)
[remixd ] at Module.load (module.js:566:32)
[remixd ] at tryModuleLoad (module.js:506:12)
[remixd ] at Function.Module._load (module.js:498:3)
[remixd ] at Function.Module.runMain (module.js:694:10)
[remixd ] at startup (bootstrap_node.js:204:16)
[remixd ] at bootstrap_node.js:625:3
[remixd ] npm ERR! code ELIFECYCLE
[remixd ] npm ERR! errno 1
[remixd ] npm ERR! remix-ide@0.7.3 remixd: `./node_modules/remixd/bin/remixd -s ./contracts`
[remixd ] npm ERR! Exit status 1
[remixd ] npm ERR!
[remixd ] npm ERR! Failed at the remix-ide@0.7.3 remixd script.
[remixd ] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[remixd ]
[remixd ] npm ERR! A complete log of this run can be found in:
[remixd ] npm ERR! /home/kevin/.npm/_logs/2018-10-01T13_40_12_969Z-debug.log
ERROR: "remixd" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! remix-ide@0.7.3 start: `npm-run-all -lpr serve watch onchange remixd`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the remix-ide@0.7.3 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/kevin/.npm/_logs/2018-10-01T13_40_13_348Z-debug.log
百度了一下,似乎是没有 serve 引起,然后
尝试 sudo npm install serve , 有以下提示:
npm WARN eslint-plugin-node@4.2.3 requires a peer of eslint@>=3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN remix-tests@0.0.13 requires a peer of yo-yoify@latest but none is installed. You must install peer dependencies yourself.
npm WARN The package remixd is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ serve@10.0.2
updated 1 package and audited 400049 packages in 15.515s
found 0 vulnerabilities
但 npm start 还是报错,不知道什么原因,求高人指点