I'm trying to use solc with no success.
I download solc with npm install solc
but when I run solc --version
the console output is:
command not found.
If I list packages npm list
I'm able to see solc@0.3.5
.
What's wrong?
nodejssolcsolidity
I'm trying to use solc with no success.
I download solc with npm install solc
but when I run solc --version
the console output is:
command not found.
If I list packages npm list
I'm able to see solc@0.3.5
.
What's wrong?
Best Answer
You should add solc to PATH. Type which solc to get the location where the solidity compiler is installed and add this to PATH. If you just want to check the version, navigate to the location where solidity is installed and then type in the command solc --version.