# Ina219.js woes on Bullseye install

**URL:** https://discourse.nodered.org/t/ina219-js-woes-on-bullseye-install/79627
**Category:** General
**Created:** [7 July 2023 07:20 UTC](https://discourse.nodered.org/t/ina219-js-woes-on-bullseye-install/79627 "2023-07-07T07:20:44Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [7 July 2023 11:04 UTC](https://discourse.nodered.org/t/ina219-js-woes-on-bullseye-install/79627/6 "2023-07-07T11:04:23Z")

</div>

> [@muggins](#):
>
> I get about a hundred lines of errors

And in that will be the key to the issue.

Unfortunately we cannot see what you don't post.

Just be sure to wrap the log in a code block (hit the `</>` button before pasting log)

  

> [@muggins](#):
>
> ```auto
> var fs = require("fs");
> var i2c = require("i2c-bus");
> var ina219 = require("ina219");
> 
> module.exports = {
> 
> ```
> 
> and then further down....
> 
> ```auto
> functionGlobalContext: {
> ina219:require('ina219'),
> fs:require('fs'),
> i2c:require('i2c-bus')
> 
> ```

If you require at the top, there is no need to require again.

Also, have you `npm install`ed these modules in your `./node-red ` directory?

Edit:  
Sorry, I reformatted your post and can now see you tried to install ina219

Unfortunately, without the logs or at least the important parts, it will be difficult to help you.

---

_[View the full topic](https://discourse.nodered.org/t/ina219-js-woes-on-bullseye-install/79627)._
