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

Unable to push to heroku. Getting a core-js post install error. #843

Closed
zendevil opened this issue Jul 4, 2020 · 5 comments
Closed

Unable to push to heroku. Getting a core-js post install error. #843

zendevil opened this issue Jul 4, 2020 · 5 comments

Comments

@zendevil
Copy link

zendevil commented Jul 4, 2020

While pushing on heroku, I'm getting the following error:

remote: > core-js-pure@3.6.5 postinstall /root/.nvm/versions/node/v12.18.1/lib/node_modules/karma/node_modules/core-js-pure        
remote: > node -e "try{require('./postinstall')}catch(e){}"        
remote: 
remote: sh: 1: node: Permission denied        
remote: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/karma/node_modules/chokidar/node_modules/fsevents):        
remote: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})        
remote:         
remote: npm ERR! code ELIFECYCLE        
remote: npm ERR! syscall spawn        
remote: npm ERR! file sh        
remote: npm ERR! errno ENOENT        
remote: npm ERR! core-js-pure@3.6.5 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`        
remote: npm ERR! spawn ENOENT        
remote: npm ERR!         
remote: npm ERR! Failed at the core-js-pure@3.6.5 postinstall script.        
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.        
remote:         
remote: npm ERR! A complete log of this run can be found in:        
remote: npm ERR!     /root/.npm/_logs/2020-07-04T09_49_17_733Z-debug.log        

How to fix this?

@mfitton
Copy link

mfitton commented Oct 21, 2020

I'm hitting a very similar error

@mfitton
Copy link

mfitton commented Oct 21, 2020

Oops, sorry, it was due to a node update, not core-js.

@codethief
Copy link

I've been experiencing the same issue. Shouldn't the postinstall script call nodejs instead of node? See also https://askubuntu.com/questions/404929/node-command-not-found

@liu-minjie
Copy link

liu-minjie commented Jan 17, 2021

node -e "try{require('./postinstall')}catch(e){}"
sh: node: command not found

similar error

but i can run node command in terminal

@zloirock
Copy link
Owner

zloirock commented Oct 3, 2021

Closed due to inactivity.

@zloirock zloirock closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants