I am trying to use the web3 API through my project in meteor. I saw an example that included web3 the following way:
<script type="text/javascript">
var Web3 = require('web3');
var web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider("http://localhost:8545"));
...code... </script>
When i run the project i get this error "Uncaught Error: Cannot find module 'web3'". I've already added web3 to meteor withe this command: meteor add ethereum:web3 . What am I missing?