我是否缺少tmp文件? Heroku部署错误ENOENT

时间:2020-05-23 21:01:05

标签: node.js heroku npm

我已经搜索了Google和SO,将每行都粘贴进去并尝试提供的解决方案,但无济于事。我尝试过的这些解决方案包括:更新NPM,重新安装node_modules,创建空白.npmignore文件并确保node版本在package.json中,等等。我已包含尝试将应用程序推送到Heroku时得到的命令行响应。我找不到正在引用的tmp文件,所以我认为这是主要的罪魁祸首,任何帮助将不胜感激。

remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:        NODE_VERBOSE=false
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:
remote:        Resolving node version 12.x...
remote:        Downloading and installing node 12.16.3...
remote:        Using default npm version: 6.14.4
remote:
remote: -----> Installing dependencies
remote:        Prebuild detected (node_modules already exists)
remote:        Rebuilding any native modules
remote:        npm ERR! code ENOENT
remote:        npm ERR! syscall chmod
remote:        npm ERR! path /tmp/build_5a3f35f2b4044705fefebef727074f14/node_modules/protobufjs/bin/pbts
remote:        npm ERR! errno -2
remote:        npm ERR! enoent ENOENT: no such file or directory, chmod '/tmp/build_5a3f35f2b4044705fefebef727074f14/node_modules/protobufjs/bin/pbts'
remote:        npm ERR! enoent This is related to npm not being able to find a file.
remote:        npm ERR! enoent
remote:
remote:        npm ERR! A complete log of this run can be found in:
remote:        npm ERR!     /tmp/npmcache.jDRDQ/_logs/2020-05-23T20_48_45_290Z-debug.log
remote:
remote: -----> Build failed
remote:
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote:        Some possible problems:
remote:
remote:        - node_modules checked into source control
remote:          https://blog.heroku.com/node-habits-2016#9-only-git-the-important-bits
remote:
remote:        - Node version not specified in package.json
remote:          https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote:        Love,
remote:        Heroku
remote:
remote:  !     Push rejected, failed to compile Node.js app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to algebra-1-assessment.
remote:

0 个答案:

没有答案