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
Failing npm install or npm ci #353
Comments
I have the following versions of Node and npm and I don’t see any problems with the name of the script:
I don’t think it means |
@pepelsbey The NPM documentation says this is the default script name. https://docs.npmjs.com/misc/scripts
Maybe this is my mistake. I'll investigate. But renaming |
I don’t mind renaming script to build, it would be the safe option. I’ll prepare PR and will ask you for review :) |
I have the same error with node.js v14.5.0 |
I tried it with Node v14.7.0 and it worked fine. Could you please test it again? I might be doing it wrong.
|
I sat down to fix it, but first I tried to reproduce it. The reason I’m hesitant because the “prepare” word is also used in @shower/cli package and it will require both packages to change API and naming. I’ll do this if there’s no other way, I just want to make sure that it’s inevitable. |
@pepelsbey I think you already have a node_modules folder. Try to: rm -rf node_modules
npm install or git clone ...
npm install |
@avdeev it worked fine
|
@pepelsbey Now I can't reproduce it either :) I think you can close the issue |
Let’s wait for @pashkes’s confirmation, just in case :) |
@pepelsbey thanks, Log➜ slides npm i
✔ Project preparation in progress audited 575 packages in 5.231s 19 packages are looking for funding found 0 vulnerabilities ➜ slides node -v |
Thank you for reporting this :) I’m glad it got somehow resolved without API changes. |
Since NPM 6.12 (https://github.com/npm/cli/releases/tag/v6.12.0)
npm ci
and probablynpm install
runs prepare script for git dependencies. This new behavior callsprepare
script before the dependencies are installed and causes an error.I suggest renaming
prepare
in to something different. For example, we can usebuild
.Now, we need to use
npm install --ignore-scripts
to successfully install dependencies.The text was updated successfully, but these errors were encountered: