Error while running "yarn add solc". Package.json, yarn.lock, node_modules files are not creating after running "yarn add solc". #2155
parasssinghl
started this conversation in
General
Replies: 2 comments 3 replies
-
You need to run this command in the terminal before doing
This will generate the |
Beta Was this translation helpful? Give feedback.
2 replies
-
As @musubbinomair mentioned above first you need to initialize package manager file using
then you add the dependencies that you need. Here it would be solc
then create your SimpleStorage.sol file and run the command for which you are getting error |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Because of files are not creating, when I run yarn solcjs --bin --abi --include-path node_modules/ --base-path . -o . SimpleStorage.sol" it shows Error:
Error reading SimpleStorage.sol: Error: ENOENT: no such file or directory, open 'SimpleStorage.sol'
Pls help
Beta Was this translation helpful? Give feedback.
All reactions