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 install returning 1 after core-js Post-install in a Docker Environment #781

Closed
honeymoan opened this issue Mar 15, 2020 · 5 comments
Closed

Comments

@honeymoan
Copy link

Heyo,

I'm using Drone CI on a AWS Ubuntu to build a Angular project that depends on core-js; but don't know why core-js postinstall keeps stopping my building process, event with npm config set unsafe-perm true.

Verbose isn't returning anything strange and my Docker image is node's latest, core-js's version is 3.6.4.

npm info lifecycle cookie-signature@1.0.6~postinstall: cookie-signature@1.0.6
npm info lifecycle copy-descriptor@0.1.1~postinstall: copy-descriptor@0.1.1
npm info lifecycle core-js@3.6.4~postinstall: core-js@3.6.4

> core-js@3.6.4 postinstall /drone/src/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Environment Variable CI is currently TRUE as well, there's anything more I've need to do?

@honeymoan
Copy link
Author

Okay, I've tried running with --silent and it worked. Maybe is related to that CI var in the postinstall script. Don't know if Drone's env variables are in this filter.

// you could add a PR with an env variable for your CI detection

@ties-s
Copy link

ties-s commented Apr 4, 2020

I’m also having this issue. --silent doesn’t work for me.

@slowcheetah
Copy link
Contributor

Try this path #794

@ties-s
Copy link

ties-s commented Apr 4, 2020

I’ve already tried with using the CI env var

@honeymoan
Copy link
Author

@slowcheetah i'm going to check if your change worked, thanks!

@slowcheetah slowcheetah mentioned this issue Apr 10, 2020
retronav added a commit to retronav/core-js that referenced this issue Apr 12, 2020
When installing multiple packages that depend on core-js, the postinstall message will pop up mutiple times which will add unnecessary verbosity to the terminal log. I know zloirock#767, zloirock#548, zloirock#797, zloirock#757, zloirock#781 ,zloirock#729, zloirock#708, refer to this problem and since @zloirock refuses to remove this, lets limit it to one time so that verbosity gets truncated to the least.
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