Comments (6)
Ok, good to hear that it works now. Thanks for the feedback.
from i2c-bus.
Can you post the complete output of the command npm install i2c-bus
please?
from i2c-bus.
Of course, here's the entire output.
Log file: 2020-12-21T12_12_55_150Z-debug.log
jorisvervuurt@Mac-mini-van-Joris-Vervuurt SUPER_SECRET % npm install i2c-bus
Debugger listening on ws://127.0.0.1:50889/91f951b6-5c9a-4a2f-a2a0-bab086e60853
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
> [email protected] install /Users/jorisvervuurt/Documents/Software/GitHub/SUPER_SECRET/node_modules/i2c-bus
> node-gyp rebuild
Debugger listening on ws://127.0.0.1:50897/b8b76c90-cc7f-4249-b768-2c98271c2e82
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Debugger listening on ws://127.0.0.1:50901/a0c58568-93c9-4b1d-8590-96ea921ceb29
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Waiting for the debugger to disconnect...
gyp: Call to 'node -e "require('nan')"' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/jorisvervuurt/.nvm/versions/node/v14.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.2.0
gyp ERR! command "/Users/jorisvervuurt/.nvm/versions/node/v14.15.3/bin/node" "/Users/jorisvervuurt/.nvm/versions/node/v14.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/jorisvervuurt/Documents/Software/GitHub/SUPER_SECRET/node_modules/i2c-bus
gyp ERR! node -v v14.15.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
Waiting for the debugger to disconnect...
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jorisvervuurt/.npm/_logs/2020-12-21T12_12_55_150Z-debug.log
Waiting for the debugger to disconnect...
from i2c-bus.
Okay... this is weird. I retried removing and installing the package and now it went fine.
Not sure what was the issue, but it seems to work fine now so I'm closing the issue. ;-)
from i2c-bus.
@jorisvervuurt , what did you do to fix this, I'm having the same issue, I am using Big Sur 11.2.3, and when I try to install node-gyp:
npm install -g node-gyp
The result is:
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/node-gyp failed, reason: getaddrinfo ENOTFOUND myproxy.example.com
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sy/.npm/_logs/2021-03-09T15_25_52_688Z-debug.log
I am not behind a proxy. I am running node v15.11.0
from i2c-bus.
@SPlatten the error you are seeing is not related to the error I experienced. It seems either the npm registry was temporarily unreachable or you are experiencing internet connectivity issues.
from i2c-bus.
Related Issues (20)
- Aborting with `malloc(): invalid size (unsorted)` HOT 3
- Support for 16 bit command/index HOT 3
- Does this library support different speeds? HOT 3
- installation fails with docker on ARM64 (raspberry PI 4B) HOT 2
- .openSync() works async way HOT 8
- index.d.ts HOT 4
- Crashing when declared and run HOT 2
- cannot detect i2c device of shtc3
- HC-SR04 Ultrasonic Sensor example on i2c-bus HOT 3
- writeI2cBlockSync returns a PromisifiedBus rather than the suggested number of bytes written HOT 5
- Can't it be used on orange pi 3 LTS? HOT 1
- Failing to install on Raspberry Pi Zero 2 W HOT 8
- Slave mode support? HOT 1
- Asistance with reading a register HOT 3
- Approach for device abstraction layer HOT 5
- Error: EIO, Input/output error HOT 2
- Question - Thread Safety/Mutexing - Are the methods on an I2CBus thread safe on a RaspberryPi in Node.JS? HOT 2
- How to list available adapters? HOT 6
- Error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i2c-bus.