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

Any way to use it in Netlify prod #47

Open
debotos opened this issue Sep 12, 2024 · 1 comment
Open

Any way to use it in Netlify prod #47

debotos opened this issue Sep 12, 2024 · 1 comment

Comments

@debotos
Copy link

debotos commented Sep 12, 2024

package.json - scripts ->
"preinstall": "npx npmrc-replace-env --without-prefix"

Netlify Log:
npm WARN exec The following package was not found and will be installed: [email protected]

@dennzimm
Copy link
Owner

dennzimm commented Dec 4, 2024

package.json - scripts ->

"preinstall": "npx npmrc-replace-env --without-prefix"

Netlify Log:

npm WARN exec The following package was not found and will be installed: [email protected]

The warning seems to be caused by npx prompting before installing the package. By default, npx asks for confirmation to install packages to prevent security issues.

To suppress this prompt, you can add the --yes (or -y) flag to your npx command in the preinstall script:

"preinstall": "npx --yes npmrc-replace-env --without-prefix"

(https://docs.npmjs.com/cli/v10/commands/npx)

This should prevent the warning and ensure the command runs without interruptions. Let me know if this solves the issue!

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

2 participants