New to node.js here;
I installed it and am trying to use the w3 module (on windows).
I have altered my global repo location to: C:\Users\<user>\.node_modules_global
and installed the web3 module with the command bellow, which created a new folder on the node_modules_global folder;:
npm install ethereum/web3.js --global
When I try to run
Web3 = require('web3') it, I get an
Error: Cannot find module 'web3'
however, if I use the fullpath:
Web3 = require('C:\\Users\\<user>\\.node_modules_global\\node_modules\\web3')
it works.
Any idea what could be causing this issue? (I have added C:\\Users\\<user>\\.node_modules_global to the SYSTEM PATH)
Thanks