亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

vue-admin-template 基礎模板 npm run build 報錯 有知道是為什么嗎

vue-admin-template 基礎模板 npm run build 報錯 有知道是為什么嗎

喵喵姐 2018-10-19 16:11:02
我直接clone的github上的,沒有改任何東西,安裝都正常 在打包時出現了問題> node build/build.js(node:1304) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'search' of undefined? ? at C:\Project-key\liuzhaoping\vue-admin-template\static\css\chunk-elementUI.e8091cad.css:1:155209? ? at isValueCustomProp (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\postcss-merge-longhand\dist\lib\decl\borders.js:106:45)? ? at C:\Project-key\liuzhaoping\vue-admin-template\node_modules\postcss-merge-longhand\dist\lib\decl\borders.js:449:18? ? at mergeRules (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\postcss-merge-longhand\dist\lib\mergeRules.js:46:17)? ? at wsc.forEach (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\postcss-merge-longhand\dist\lib\decl\borders.js:438:34)? ? at Array.forEach (<anonymous>)? ? at Object.merge (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\postcss-merge-longhand\dist\lib\decl\borders.js:436:9)? ? at _decl2.default.forEach.p (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\postcss-merge-longhand\dist\index.js:22:19)? ? at Array.forEach (<anonymous>)? ? at css.walkRules.rule (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\postcss-merge-longhand\dist\index.js:20:28)? ? at C:\Project-key\liuzhaoping\vue-admin-template\node_modules\cssnano\node_modules\postcss\lib\container.js:239:18? ? at C:\Project-key\liuzhaoping\vue-admin-template\node_modules\cssnano\node_modules\postcss\lib\container.js:135:18? ? at Root.each (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\cssnano\node_modules\postcss\lib\container.js:101:16)? ? at Root.walk (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\cssnano\node_modules\postcss\lib\container.js:131:17)? ? at Root.walkRules (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\cssnano\node_modules\postcss\lib\container.js:237:19)? ? at css (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\postcss-merge-longhand\dist\index.js:19:13)? ? at initializePlugin (C:\Project-key\liuzhaoping\vue-admin-template\node_modules\cssnano\dist\index.js:35:51)(node:1304) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)(node:1304) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
查看完整描述

3 回答

?
qq_kaiking_g_0

TA貢獻1條經驗 獲得超0個贊

把node_modules這個文件刪掉,然后重新運行 cnpm i,一般都行!

查看完整回答
反對 回復 2018-10-25
?
蓓岑2015

TA貢獻1條經驗 獲得超0個贊

請問樓主解決了嗎?我也突然遇到這個問題,哎,無從下手。

查看完整回答
反對 回復 2018-10-25
  • 3 回答
  • 1 關注
  • 8766 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號