Heroku一直给我带来问题。我正在与该社区联系以寻求帮助。 Here是我要从中部署的GitHub。
这是Heroku部署中的日志。
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
-----> Installing binaries
engines.node (package.json): 10.x
engines.npm (package.json): unspecified (use default)
Resolving node version 10.x...
Downloading and installing node 10.16.3...
Using default npm version: 6.9.0
-----> Restoring cache
- node_modules
-----> Installing dependencies
Installing node modules (package.json + package-lock)
audited 140 packages in 0.992s
found 0 vulnerabilities
-----> Build
Running build
> discord-bot@1.1.2 build /tmp/build_f94cf14f36703529d7dc8747d9f97287
> my-framework build --output public
sh: 1: my-framework: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! discord-bot@1.1.2 build: `my-framework build --output public`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the discord-bot@1.1.2 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! /tmp/npmcache.o6vNA/_logs/2019-10-15T01_09_55_020Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
我真的不明白为什么它不能正确部署。 v1.1.x。
我正在使用以下依赖项。这是来自JSON。
"dependencies": {
"discord.js": "^11.5.1",
"discord.js-commando": "^0.10.0",
"dotenv": "^7.0.0",
"express": "^4.16.4",
"isomorphic-fetch": "^2.2.1"
}