Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将vue.js部署到heroku时遇到的一些问题_Heroku_Vue.js - Fatal编程技术网

将vue.js部署到heroku时遇到的一些问题

将vue.js部署到heroku时遇到的一些问题,heroku,vue.js,Heroku,Vue.js,我尝试将spring boot web应用程序和vue cli部署为前端。 春天没有问题 节点build/build.js有问题 github上的链接- 这是我的构建日志 [INFO] Running 'npm install' in /tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app [WARNING] npm WARN bootstrap@4.1.1 requires a peer of jquery@1.9.1 - 3 but

我尝试将spring boot web应用程序和vue cli部署为前端。 春天没有问题

节点build/build.js有问题

github上的链接-

这是我的构建日志

[INFO] Running 'npm install' in /tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app
   [WARNING] npm WARN bootstrap@4.1.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
   [ERROR] 
   [INFO] up to date in 2.729s
   [INFO] 
   [INFO] --- frontend-maven-plugin:1.6:npm (npm run build) @ sport-app ---
   [INFO] Running 'npm run build' in /tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app
   [INFO] 
   [INFO] > sport-app@1.0.0 build /tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app
   [INFO] > node build/build.js
   [INFO] 
   [ERROR] internal/modules/cjs/loader.js:550
   [ERROR]     throw err;
   [ERROR]     ^
   [ERROR] 
   [ERROR] Error: Cannot find module 'chalk'
   [ERROR]     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
   [ERROR]     at Function.Module._load (internal/modules/cjs/loader.js:475:25)
   [ERROR]     at Module.require (internal/modules/cjs/loader.js:598:17)
   [ERROR]     at require (internal/modules/cjs/helpers.js:11:18)
   [ERROR]     at Object.<anonymous> (/tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app/build/check-versions.js:2:15)
   [ERROR]     at Module._compile (internal/modules/cjs/loader.js:654:30)
   [ERROR]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
   [ERROR]     at Module.load (internal/modules/cjs/loader.js:566:32)
   [ERROR]     at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
   [ERROR]     at Function.Module._load (internal/modules/cjs/loader.js:498:3)
   [ERROR] npm ERR! code ELIFECYCLE
   [ERROR] npm ERR! errno 1
   [ERROR] npm ERR! sport-app@1.0.0 build: `node build/build.js`
   [ERROR] npm ERR! Exit status 1
   [ERROR] npm ERR! 
   [ERROR] npm ERR! Failed at the sport-app@1.0.0 build script.
   [ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
   [ERROR] 
   [ERROR] npm ERR! A complete log of this run can be found in:
   [ERROR] npm ERR!     /app/.npm/_logs/2018-05-30T18_07_35_898Z-debug.log
   [INFO] ------------------------------------------------------------------------
   [INFO] Reactor Summary:
   [INFO] 
   [INFO] coursework ......................................... SUCCESS [  2.843 s]
   [INFO] sport-app .......................................... FAILURE [ 15.478 s]
   [INFO] sport .............................................. SKIPPED
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 20.496 s
   [INFO] Finished at: 2018-05-30T18:07:35+00:00
   [INFO] Final Memory: 34M/269M
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm run build) on project sport-app: Failed to run task: 'npm run build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
   [ERROR] 
   [ERROR] After correcting the problems, you can resume the build with the command
   [ERROR]   mvn <goals> -rf :sport-app
[INFO]在/tmp/build31b7d0935e35bcd3ec6aff51ee1bad/sport应用程序中运行“npm安装”
[警告]npm警告bootstrap@4.1.1需要一个同龄人jquery@1.9.1-3,但没有安装。您必须自己安装对等依赖项。
[错误]
[信息]在2.729秒内更新
[信息]
[信息]---前端maven插件:1.6:npm(npm运行构建)@sport app---
[信息]在/tmp/BUILD31B7D0935E35BCD3EC6A6FF51EE1BAD/sport应用程序中运行“npm运行构建”
[信息]
[信息]>体育-app@1.0.0build/tmp/build_31B7D0935E35BCD3EC6A6FF51EE1BAD/sport应用程序
[INFO]>节点构建/build.js
[信息]
[错误]内部/modules/cjs/loader.js:550
[错误]抛出错误;
[错误]^
[错误]
[错误]错误:找不到模块“粉笔”
函数.Module.\u解析文件名处的[错误](内部/modules/cjs/loader.js:548:15)
函数.Module.\u加载时出现[错误](内部/modules/cjs/loader.js:475:25)
Module.require处的[错误](内部/modules/cjs/loader.js:598:17)
需要时[错误](内部/modules/cjs/helpers.js:11:18)
对象上的[错误]。
!     推送被拒绝,未能编译Java应用程序。

! 推送失败

删除'warn.lock'对我有效

不久前我也遇到了同样的问题,不确定如何修复它。但是你在推之前试过建它吗?是的,我建了它,它成功了