Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6025

How to run local "solc" instead of global "solc" for local project?

$
0
0

I have installed solc@0.8.26 globally, but a recent project needs to use solc@0.8.20. I have installed solc@0.8.20 in the local project folder (/node_modules/.bin/solcjs). But when I try "solc --version" in local project folder, I still get "Version: 0.8.26+commit.8a97fa7a.Linux.g++".

How can I make sure that in the project folder, whenever I run "solc", it will be using the version installed locally?

Thank you for your time.


Viewing all articles
Browse latest Browse all 6025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>