Lesson 5: ERROR: EISDIR: illegal operation on a directory, read. #744
-
Hi everyone! I been following the steps to compile the smart contract SimpleStorage.sol, first time compiled succes, but then i tried to run it again and get this error: yarn run v1.22.15
warning package.json: No license field
$ yarn solcjs --bin -—abi —-include-path node_modules/ —-base-path . -o . SimpleStorage.sol
warning package.json: No license field
$ /home/nicolascinzer/hardhat-fcc/ethers-simple-storage/node_modules/.bin/solcjs --bin -—abi —-include-path node_modules/ —-base-path . -o . SimpleStorage.sol
Error reading node_modules/: Error: EISDIR: illegal operation on a directory, read
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Googled it but left with no solution. Anyone can help me? Thx guys!! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
EISDIR stands for "Error, Is Directory". This means that yarn is trying to do something to a file but it is a directory. |
Beta Was this translation helpful? Give feedback.
-
Do not worry about compiling - just understand the concept behind it. Because as you are introduced to Hardhat, it will be much easier. This is just a sample program to demonstrate how you can use smart contracts, and deploying them. |
Beta Was this translation helpful? Give feedback.
-
That's okay, whenever there are problems and none of the debugging methods work, just open a discussion here - goodluck with the course!! (not giving up is the best advice I can give, it is very daunting at first haha) Also, close this discussion whenever you feel like it. |
Beta Was this translation helpful? Give feedback.
-
Okey guys, in my case, this problem can be solved by just type the command in the console, avoid the shortcut created on the package.json. |
Beta Was this translation helpful? Give feedback.
-
Can you send your |
Beta Was this translation helpful? Give feedback.
Okey guys, in my case, this problem can be solved by just type the command in the console, avoid the shortcut created on the package.json.