我想做什么?
我试图在我的项目中安装npm,
并在我的终端中执行了以下命令,该终端内部有一个npm install
来启动npm安装。
`mvn clean install -Dmaster.build.node=master`
我还尝试直接执行以下命令,
`sudo npm install`
我尝试使用最新的节点版本以及版本> 4 和当前节点版本 v10.1.0
我面临什么问题?
以下是执行上述命令时出现的错误
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at /Users/tanveer/workspace/myApp/target/nodejs/lib/node_modules/npm/node_modules/npm-registry-client/index.js:72:20
at Array.forEach (native)
at CachingRegistryClient.RegClient /Users/tanveer/workspace/myApp/target/nodejs/lib/node_modules/npm/node_modules/npm-registry-client/index.js:50:42)
npm ERR! Darwin 17.4.0
npm ERR! argv "/Users/tanveer/workspace/myApp/target/nodejs/bin/node" "/Users/tanveer/workspace/myApp/target/nodejs/bin/npm" "run" "full" "-loglevel" "warn" "--registry https://npm.apple.com"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! /Users/tanveer/workspace/myApp/target/nodejs/lib/node_modules/npm/node_modules/npm-registry-client/lib/._access.js:1
npm ERR! (function (exports, require, module, __filename, __dirname) {
npm ERR!
npm ERR! Unexpected token ILLEGAL
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
有人可以帮忙解决这个问题。