拿到项目后,cnpm install(淘宝镜像)安装好依赖包
然后启动项目,报错,反复尝试都是一样的报错。
同样的操作,别人就能运行,项目是git同步过来的,不知道哪里出问题了,求教。
希望哪怕能指点一下该从什么方向着手。
报错如下
浏览器页面:
Failed to compile
./src/index.js
Module build failed: Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean.
This error occurred during the build time and cannot be dismissed.
浏览器console:
Uncaught Error: Module build failed: Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean.
at validatePlugins (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_parser@7.0.0@@babel\parser\lib\index.js:10407:13)
at getParser (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_parser@7.0.0@@babel\parser\lib\index.js:10464:5)
at parse (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_parser@7.0.0@@babel\parser\lib\index.js:10448:12)
at parser (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transformation\normalize-file.js:170:34)
at normalizeFile (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transformation\normalize-file.js:138:11)
at runSync (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transformation\index.js:44:43)
at runAsync (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transformation\index.js:35:14)
at process.nextTick (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transform.js:34:34)
at process._tickCallback (internal/process/next_tick.js:61:11)
at validatePlugins (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_parser@7.0.0@@babel\parser\lib\index.js:10407:13)
at getParser (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_parser@7.0.0@@babel\parser\lib\index.js:10464:5)
at parse (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_parser@7.0.0@@babel\parser\lib\index.js:10448:12)
at parser (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transformation\normalize-file.js:170:34)
at normalizeFile (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transformation\normalize-file.js:138:11)
at runSync (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transformation\index.js:44:43)
at runAsync (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transformation\index.js:35:14)
at process.nextTick (F:\ZCK_Cloud\Projects\YDHL\angular_ydhl\huanbao\Environment(parkAdmin)\node_modules\_@babel_core@7.0.0@@babel\core\lib\transform.js:34:34)
at process._tickCallback (internal/process/next_tick.js:61:11)
at Object.<anonymous> (http://localhost:8000/index.js:15146:7)
at __webpack_require__ (http://localhost:8000/index.js:679:30)
at fn (http://localhost:8000/index.js:89:20)
at Object.<anonymous> (http://localhost:8000/index.js:4316:18)
at __webpack_require__ (http://localhost:8000/index.js:679:30)
at module.exports (http://localhost:8000/index.js:725:38)
at http://localhost:8000/index.js:728:10
用npm install安装就正常了,cnpm install安装报错