Cannot access plugin-addons - heroku

Hey i have a problem with deploying an app, when i try to deploy he app i get this error
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/nodejs
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): 14.x
engines.npm (package.json): unspecified (use default)
Resolving node version 14.x...
Downloading and installing node 14.16.0...
Using default npm version: 6.14.11
-----> Installing dependencies
Installing node modules
npm ERR! #heroku-cli/plugin-addons not accessible from heroku
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.fHOrI/_logs/2021-03-24T14_04_47_335Z-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
! Push rejected, failed to compile Node.js app.
! Push failed
Why can it not access plugins that the deploy is generating? in the node_module folder

I had a similar error, and I fixed it by running an npm install on the specific library I was missing. I would try reinstalling Heroku CLI, and then npm install again. If you're missing a specific package, then try reinstalling it.
For reference I had this error:
Installing dependencies
Installing node modules
npm ERR! ws not accessible from #heroku-cli/plugin-ci
And I fixed it by running npm install ws for the web sockets plugin.

Related

Heroku: Build Failed

-----> Building on the Heroku-20 stack
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 14.x...
Downloading and installing node 14.16.0...
Using default npm version: 6.14.11
-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build
-----> Installing dependencies
Prebuild detected (node_modules already exists)
Rebuilding any native modules
> canvas#2.6.1 install /tmp/build_dc388f20_/node_modules/canvas
> node-pre-gyp install --fallback-to-build
sh: 1: node-pre-gyp: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! canvas#2.6.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the canvas#2.6.1 install 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.40jbb/_logs/2021-03-05T17_30_09_270Z-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
Some possible problems:
- node_modules checked into source control
https://devcenter.heroku.com/articles/node-best-practices#only-git-the-important-bits
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
How do i fix this?

Error "node_modules checked into source control" when trying to run a discord bot

When i try to run the bot in Heroku, it keeps giving me the same error and not turning the bot on. How would i go on to fix this issue? All the files and node modules are already installed in the github repository
-----> 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): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 12.x...
Downloading and installing node 12.19.1...
Using default npm version: 6.14.8
-----> Installing dependencies
Prebuild detected (node_modules already exists)
Rebuilding any native modules
> #discordjs/opus#0.3.2 install /tmp/build_8234188f_/node_modules/#discordjs/opus
> node-pre-gyp install --fallback-to-build
sh: 1: node-pre-gyp: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! #discordjs/opus#0.3.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the #discordjs/opus#0.3.2 install 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.tAPfy/_logs/2020-11-22T22_42_39_963Z-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
Some possible problems:
- node_modules checked into source control
https://devcenter.heroku.com/articles/node-best-practices#only-git-the-important-bits
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed

Heroku Build Failing Due To Code Integrity

I have an application deployed on Heroku and I have not had problems redeploying it, up until yesterday.
I had to upgrade one of the dependencies in my package-lock.json/yarn.lock files and when trying to upload it to Heroku, I get the following:
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): 10.15.x
remote: engines.npm (package.json): 6.14.x
remote:
remote: Resolving node version 10.15.x...
remote: Downloading and installing node 10.15.3...
remote: Bootstrapping npm 6.14.x (replacing 6.4.1)...
remote: npm 6.14.x installed
remote:
remote: -----> Installing dependencies
remote: Installing node modules (package.json + package-lock)
remote: npm ERR! code EINTEGRITY
remote: npm ERR! sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= integrity checksum failed when using sha1: wanted sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= but got sha512-rIqbOrKb8GJmx/5bc2M0QchhUouMXSpd1RTclXsB41JdL+VtnojfaJR+h7F9k18/4kHUsBFgk80Uk+q569vjPA== sha1-sAoAIwoRCMSMFp5popGq/aOqzWM=. (7897 bytes)
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.P3BnU/_logs/2020-03-18T06_17_36_985Z-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: If you're stuck, please submit a ticket so we can help:
remote: https://help.heroku.com/
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
I realize the problem resides within this line:
npm ERR! code EINTEGRITY
remote: npm ERR! sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= integrity checksum failed when using sha1: wanted sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= but got sha512-rIqbOrKb8GJmx/5bc2M0QchhUouMXSpd1RTclXsB41JdL+VtnojfaJR+h7F9k18/4kHUsBFgk80Uk+q569vjPA== sha1-sAoAIwoRCMSMFp5popGq/aOqzWM=. (7897 bytes)
but I do not know why it is occurring now or what triggered it (as it did not happen before).
I have tried searching online and clearing the cache, reading Heroku's Node.js Troubleshooting, adding an engines key to my package.json file to specify node/npm versions, but nothing works.
I have NOT upgraded Node/NPM in my development environment, so those versions are the same.
Per #TinNguyen's comment, I executed the following commands:
npm uninstall package_name
and then :
npm install package_name
and that seemed to fix the issue.
I simply deleted package-lock.json and npm modules, then run npm install.
I had the same issue and fixed it.
Probably you have npm vulnerabilities and if you cant fix them all
try upgrading all you packages in package.json
useful tool is
npm install -g npm-check-updates
then
ncu --upgrade
then
npm install
make sure to delete package-lock.json before npm install
Simply: delete package-lock.json and run npm install

Building of app during app deployment fails in Heroku

I tried deploying an app in Heroku (the same one I tried asking about here), but although it deployed, I keep on getting the wrong output. So I deleted the deployed app (I deployed it using Heroku's website) and tried to deploy it by using Heroku CLI on cmd instead. but then suddenly the app won't deploy. I tried to deploy it using the website again, but it still won't deploy and keep on showing this error message
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=true
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): 4.1.1
engines.npm (package.json): unspecified (use default)
Resolving node version 4.1.1...
Downloading and installing node 4.1.1...
Using default npm version: 2.14.4
-----> Restoring cache
Skipping cache restore (not-found)
-----> Building dependencies
Installing node modules (package.json)
npm ERR! install Couldn't read dependencies
npm ERR! Linux 4.14.12-041412-generic
npm ERR! argv "/tmp/build_fd784069b3690d9546dfaea15e0e3251/digracesion-make-sandwich-0fe3e02/.heroku/node/bin/node" "/tmp/build_fd784069b3690d9546dfaea15e0e3251/digracesion-make-sandwich-0fe3e02/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_fd784069b3690d9546dfaea15e0e3251/digracesion-make-sandwich-0fe3e02/.npmrc"
npm ERR! node v4.1.1
npm ERR! npm v2.14.4
npm ERR! Invalid name: "Make Sandwich App"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/build_fd784069b3690d9546dfaea15e0e3251/digracesion-make-sandwich-0fe3e02/npm-debug.log
-----> Build failed
removed the capital letters and spaces in the name field like #Syed said and changed it to something like make-sandwich.
when this didn't worked, i check the files in the repository and realized that not all files were committed properly by trying the command
git status
so i committed all of the changes using these:
git add .
git commit -m "commit comment here"
and then pushed the changes with the use of
git push heroku master

Issue with deployment of sails.js app on Heroku - npm error - package: sailshq/body-parser

To start, current configuration - Development machine:
Node version: 8.4.0
Npm: 5.3.0 (comes with 8.4)
Sails: ~0.12.13
Source control system: Github
Deployment host: Heroku
I followed following guide: https://vort3x.me/sailsjs-heroku/ (except the heroku git part, working with github)
But I am rather stuck when I press deploy in Heroku, the following happens:
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=true
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=false
-----> Installing binaries
engines.node (package.json): 8.4.0
engines.npm (package.json): unspecified (use default)
Resolving node version 8.4.0...
Downloading and installing node 8.4.0...
Detected package-lock.json: defaulting npm to version 5.x.x
Bootstrapping npm 5.x.x (replacing 5.3.0)...
npm 5.3.0 installed
-----> Restoring cache
Skipping cache restore (disabled)
-----> Building dependencies
Installing node modules (package.json + package-lock)
npm ERR! path /tmp/build_7f8d8515578971e692c2e6a35e1006d2/bdemolder-boardgamenights-f5eda42/node_modules/.staging/sails-fec6f6e5/node_modules/#sailshq/body-parser
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/tmp/build_7f8d8515578971e692c2e6a35e1006d2/bdemolder-boardgamenights-f5eda42/node_modules/.staging/sails-fec6f6e5/node_modules/#sailshq/body-parser' -> '/tmp/build_7f8d8515578971e692c2e6a35e1006d2/bdemolder-boardgamenights-f5eda42/node_modules/.staging/#sailshq/body-parser-9ed21a9f'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /app/.npm/_logs/2017-08-22T20_43_13_796Z-debug.log
-----> Build failed
And frankly I have no idea what to do about this, I thought first it was because I forgot to say engine 'node: 8.4.0' and that my cache was corrupted, so I tried disabling cache, but nothing so far.
It says to rename, but I have no control over dependencies within Sails.js?
Probably doing something wrong...
Thx and kind regards
PS: I will keep looking myself and answer if I find anything.
Just remove package-lock.json, commit and push to Heroku !

Resources