Node.js 运行启动:开发人员在中同时失败意外标识符

Node.js 运行启动:开发人员在中同时失败意外标识符,node.js,Node.js,我对nodejs的世界比较陌生,在一些基础知识方面有困难 当我安装npm时,它会显示一些警告消息,但请完成它 当我进行npm构建时,它运行良好 但当我运行start:dev时,它会崩溃,并显示以下错误消息: concurrently\bin\concurrently.js:140 let lastColor; ^^^^^^^^^ SyntaxError: Unexpected identifier at exports.runInThisContext (vm.js:73:16) at Modu

我对nodejs的世界比较陌生,在一些基础知识方面有困难

当我安装npm时,它会显示一些警告消息,但请完成它

当我进行npm构建时,它运行良好

但当我运行start:dev时,它会崩溃,并显示以下错误消息:

concurrently\bin\concurrently.js:140
let lastColor;
^^^^^^^^^
SyntaxError: Unexpected identifier
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 Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start:dev"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! izi-backend@0.0.1 start:dev: `concurrently --handle-input "wait-on dist/main.js && nodemon" "tsc -w -p tsconfig.build.json" `
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the izi-backend@0.0.1 start:dev script 'concurrently --handle-input "wait-on dist/main.js && nodemon" "tsc -w -p tsconfig.build.json" '.
npm ERR! This is most likely a problem with the izi-backend package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     concurrently --handle-input "wait-on dist/main.js && nodemon" "tsc -w -p tsconfig.build.json"
npm ERR! You can get their info via:
npm ERR!     npm owner ls izi-backend
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\dev\iziMobile\izi-server\npm-debug.log
其中,npm run start:dev定义为:

"start:dev": "concurrently --handle-input \"wait-on dist/main.js && nodemon\" \"tsc -w -p tsconfig.build.json\" "
同时打印出npm-debug.log:

0信息如果以“确定”结尾,则有效 1详细cli['C:\Program Files(x86)\nodejs\\node.exe', 1 verbose cli'C:\Program Files(x86)\nodejs\node\u modules\npm\bin\npm cli.js', 1详细cli“运行”, 1详细cli“开始:开发”] 2信息使用npm@2.7.4 3信息使用node@v0.12.2 4详细节点符号链接C:\Program Files(x86)\nodejs\node.exe 5详细运行脚本['prestart:dev','start:dev','poststart:dev'] 6信息预启动:dev izi-backend@0.0.1 7信息开始:dev izi-backend@0.0.1 8生命周期中的详细不安全perm true 9信息izi-backend@0.0.1无法执行启动:dev脚本 10详细堆栈错误:izi-backend@0.0.1start:dev:
并发处理输入“wait on dist/main.js&&nodemon”“tsc-w-p tsconfig.build.json”
10详细堆栈退出状态1 EventEmitter上的10个详细堆栈。(C:\ProgramFiles(x86)\nodejs\node\u modules\npm\lib\utils\lifecycle.js:213:16) EventEmitter.emit上的10个详细堆栈(events.js:110:17) 10子进程上的详细堆栈。(C:\ProgramFiles(x86)\nodejs\node\u modules\npm\lib\utils\spawn.js:14:12) ChildProcess.emit上的10个详细堆栈(events.js:110:17) 10 maybeClose的详细堆栈(child_process.js:1015:16) 10 Process.ChildProcess.\u handle.onexit处的详细堆栈(child\u Process.js:1087:5) 11详细的pkgid-izi-backend@0.0.1 12详细cwd C:\dev\iziMobile\izi服务器 13错误窗口\u NT 6.3.9600 14错误argv“C:\Program Files(x86)\nodejs\\node.exe”“C:\Program Files(x86)\nodejs\node\u modules\npm\bin\npm cli.js”“run”“start:dev” 15错误节点v0.12.2 16错误npm v2.7.4 17错误代码ELIFECYCLE 18错误izi-backend@0.0.1start:dev:
并发处理输入“wait on dist/main.js&&nodemon”“tsc-w-p tsconfig.build.json”
18错误退出状态1 19在izi上出现错误-backend@0.0.1start:dev脚本“并发--handle input”wait on dist/main.js&&nodemon“tsc-w-p tsconfig.build.json”。 19错误这很可能是izi后端包的问题, 19错误与npm本身无关。 19错误告诉作者此操作在您的系统上失败: 19并发错误--处理输入“wait on dist/main.js&&nodemon”“tsc-w-p tsconfig.build.json” 19错误您可以通过以下方式获取他们的信息: 19错误npm所有者ls izi后端 19错误上面可能有额外的日志输出。
20详细退出[1,true]您正在使用节点版本
v0.12.2
<不支持代码>let语法


从中可以看出,节点v6.4.x支持
let

您使用的是节点版本
v0.12.2
<不支持代码>let语法


从中可以看出,节点v6.4.x支持
let
,节点v0.12.2不支持
let
声明


有关完整版本的支持列表,请参阅。

节点v0.12.2不支持
let
声明

有关完整版本的支持列表,请参阅