Nuxt.js Vue-admin-template后台管理部署和启动前报错的坑

本文介绍了在使用Nuxt.js和Vue-admin-template进行后台管理部署时遇到的启动错误问题。启动报错提示'This is probably not a problem with npm...',解决方法是理解npm run dev是开发环境,而npm run build用于生产环境。当尝试直接通过file://打开index.html时,由于vue-cli的配置,需要将dist文件夹置于HTTP服务器根目录。若想在本地查看,可以采取特定命令。
摘要由CSDN通过智能技术生成

1.启动经常报错


    E:/IdeaProjects/guli-vue-admin/index.html:17257:11

  - index.html:17262 Q3Bv.module.exports
    E:/IdeaProjects/guli-vue-admin/index.html:17262:3

  - index.js:286 HtmlWebpackPlugin.executeTemplate
    [guli-vue-admin]/[html-webpack-plugin]/index.js:286:14

  - index.js:176
    [guli-vue-admin]/[html-webpack-plugin]/index.js:176:20



  Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xiaoyu-admin@3.8.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xiaoyu-admin@3.8.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\DevelopTool\nodejs\node_cache\_logs\2020-10-27T06_51_56_811Z-debug.log

E:\IdeaProjects\guli-vue-admin>

重要的一句话是:This is probably not a problem wit

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值