You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node:internal/modules/cjs/loader:1154
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: The module '/home/pi/codingStuff/leds/node_modules/rpi-ws281x/build/Release/rpi-ws281x.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1154:18)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:816:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object.<anonymous> (/home/pi/codingStuff/leds/node_modules/rpi-ws281x/index.js:2:13)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:816:12) {
code: 'ERR_DLOPEN_FAILED'
}
Test.js Contents
var ws281x = require('rpi-ws281x');
// One time initialization
ws281x.configure({leds:16});
// Create my pixels
var pixels = new Uint32Array(16);
// Render pixels to the Neopixel strip
ws281x.render(pixels);
Info
uname 5.10.17-v7+ GNU/Linux
NodeJS Ver 14.6.0
The text was updated successfully, but these errors were encountered:
What's going wrong
When I run
sudo node test
this error pops outTest.js Contents
Info
uname
5.10.17-v7+ GNU/Linux
NodeJS Ver
14.6.0
The text was updated successfully, but these errors were encountered: