鍍金池/ 問答/Linux  HTML/ ant design pro項目,安裝依賴包后,啟動項目遇到問題

ant design pro項目,安裝依賴包后,啟動項目遇到問題

拿到項目后,cnpm install(淘寶鏡像)安裝好依賴包
然后啟動項目,報錯,反復(fù)嘗試都是一樣的報錯。
同樣的操作,別人就能運行,項目是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
回答
編輯回答
若相惜

https://github.com/ant-design...
持續(xù)關(guān)注官方github issue

2017年12月27日 11:01
編輯回答
櫻花霓

用npm install安裝就正常了,cnpm install安裝報錯

2018年6月7日 23:24