okhelper-web
okhelper-web copied to clipboard
Linux运行失败,node module报错
在linux上npm install
之后npm run dev
运行,报如下错误:
ERROR Failed to compile with 2 errors 4:52:12 PM
error in ./src/main.js
Syntax Error: /root/okhelper-web-master/node_modules/babel-plugin-import/lib/Plugin.js:61 return {...pluginState.selectedMethods[methodName]}; ^^^
SyntaxError: Unexpected token ...
@ multi (webpack)-dev-server/client?http://localhost:8088 webpack/hot/dev-server ./src/main.js
error in (webpack)-dev-server/client?http://localhost:8088
Syntax Error: /root/okhelper-web-master/node_modules/babel-plugin-import/lib/Plugin.js:61 return {...pluginState.selectedMethods[methodName]}; ^^^
SyntaxError: Unexpected token ...
@ multi (webpack)-dev-server/client?http://localhost:8088 webpack/hot/dev-server ./src/main.js