0

I am using Windows and installed web3js as general option "npm install [email protected] -g" using Windows powershell. I run powershell as administrator.

After installation i am able to get web3 object working Web3 = require('web3') only when i run cmd->node as administrator that is running by default from c:/windows/system32.

I want to be able to run code form VSCode terminal but i always getting an error: Error: Cannot find module 'web3'

Can someone help with that? I guess it is an issue related to how installation of web3 was done.

Thank you.

2 Answers 2

0

order by
up vote 0 down vote I am not sure, but I thing the "-g" parameter must be before the package

npm install -g [email protected]

0

I am not sure, but I thing the "-g" parameter must be before the package

npm install -g [email protected]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.