【发布时间】:2017-01-31 01:47:15
【问题描述】:
我在执行 $ npm start 时遇到奇怪的错误 8,输出如下
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
npm ERR! weird error 8
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
npm -v 1.3.10
节点-v v0.10.25
我已经安装了 nodejs-legacy
$ which node
/usr/bin/node
$ which nodejs
/usr/bin/nodejs
有人可以帮忙吗。
我正在尝试在 ubuntu 14.04 上运行 react-jsonschema-form 或 word-finder (https://github.com/amirrajan/word-finder)
【问题讨论】:
-
我现在收到以下错误:vagrant@oyin:~/word-finder-master$ npm install npm ERR!解析 json npm 错误的注册表错误!解析 json npm 错误的注册表错误!解析 json npm 错误的注册表错误!解析 json npm 错误的注册表错误!解析 json npm 错误的注册表错误!解析 json npm 错误的注册表错误!解析 json npm 错误的注册表错误!解析 json npm 错误的注册表错误! Linux 3.19.0-25-通用 npm 错误! argv "/opt/node-v6.6.0/bin/node" "/opt/node/bin/npm" "install" npm 错误!节点 v6.6.0 npm 错误! npm v3.10.3 请有人帮我解决这个问题