Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM error on dev #7490

Closed
bartsluimer opened this issue Jul 19, 2022 · 2 comments
Closed

NPM error on dev #7490

bartsluimer opened this issue Jul 19, 2022 · 2 comments

Comments

@bartsluimer
Copy link

When building latest dev we have the following 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): ^16.x || ^14.x || ^10.22.0 || ^12.18.4
engines.npm (package.json): ^8.x || ^6.14.6

   Resolving node version ^16.x || ^14.x || ^10.22.0 || ^12.18.4...
   Downloading and installing node 16.16.0...
   Bootstrapping npm ^8.x || ^6.14.6 (replacing 8.11.0)...
   npm 8.14.0 installed

-----> 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
Installing node modules
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64

   npm ERR! A complete log of this run can be found in:
   npm ERR!     /tmp/npmcache.6l6Cn/_logs/2022-07-19T06_45_43_856Z-debug-0.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

@psonnera
Copy link

#7487

@bewest
Copy link
Member

bewest commented Sep 18, 2022

Believe this is fixed, closing.

@bewest bewest closed this as completed Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants