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 cannot find "source" when running a deploy #64

Open
Rainbow1nTheDark opened this issue Feb 24, 2024 · 1 comment
Open

NPM cannot find "source" when running a deploy #64

Rainbow1nTheDark opened this issue Feb 24, 2024 · 1 comment

Comments

@Rainbow1nTheDark
Copy link

"deploy": "source .env && forge create contracts/src/Counter.sol:Counter --rpc-url $FORGE_RPC_URL --private-key $FORGE_PRIVATE_KEY --etherscan-api-key $ETHERSCAN_API_KEY --verify",

The error: "sh: 1: source: not found". I'm using Ubuntu. Seems to be ok with env-cmd.

Please let me know if it works for you

@Rainbow1nTheDark
Copy link
Author

The problem was that NPM by default uses /bin/sh where source might not be installed.

I solved the problem by setting NOM to use bash: npm config set script-shell "/bin/bash"

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

1 participant