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
Looks like this package is always being compiled against the wrong node version, what is going on?
This printer packages has been annoying me for the past 3 years, I don't know what I am doing wrong but I always have problems with this package.
Out of my 50+ dependencies this is the only one which is busting my balls, aaarrgghhhhg!
nvm use 11.2.0 Now using node v11.2.0 (npm v6.4.1) node -v v11.2.0 which node /Users/*******/.nvm/versions/node/v11.2.0/bin/node npm install node app.js Error: The module '/Users/**********/dev/zdeapp/node_modules/printer/lib/node_printer.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 79. This version of Node.js requires NODE_MODULE_VERSION 67. Please try re-compiling or re-installing the module (for instance, using npm rebuildornpm install). at Object.Module._extensions..node (internal/modules/cjs/loader.js:751:18) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:560:12) at Function.Module._load (internal/modules/cjs/loader.js:552:3) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:22:18) at Object.<anonymous> (/Users/********/dev/zdeapp/node_modules/printer/lib/printer.js:10:22) at Module._compile (internal/modules/cjs/loader.js:722:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10) at Module.load (internal/modules/cjs/loader.js:620:32)
now trying with another node version:
sudo rm -rf node_modules/ nvm use v14.9.0 node -v v14.9.0 npm install node app.js Error: The module '/Users/filipschlosser/dev/zdeapp/node_modules/printer/lib/node_printer.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 79. This version of Node.js requires NODE_MODULE_VERSION 83. Please try re-compiling or re-installing the module (for instance, using npm rebuildornpm install). at Object.Module._extensions..node (internal/modules/cjs/loader.js:1126:18) at Module.load (internal/modules/cjs/loader.js:940:32) at Function.Module._load (internal/modules/cjs/loader.js:781:14) at Module.require (internal/modules/cjs/loader.js:964:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/Users/filipschlosser/dev/zdeapp/node_modules/printer/lib/printer.js:10:22) at Module._compile (internal/modules/cjs/loader.js:1075:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1096:10) at Module.load (internal/modules/cjs/loader.js:940:32) at Function.Module._load (internal/modules/cjs/loader.js:781:14)
The text was updated successfully, but these errors were encountered:
Looks like this package is always being compiled against the wrong node version, what is going on?
This printer packages has been annoying me for the past 3 years, I don't know what I am doing wrong but I always have problems with this package.
Out of my 50+ dependencies this is the only one which is busting my balls, aaarrgghhhhg!
nvm use 11.2.0
Now using node v11.2.0 (npm v6.4.1)
node -v
v11.2.0
which node
/Users/*******/.nvm/versions/node/v11.2.0/bin/node
npm install
node app.js
Error: The module '/Users/**********/dev/zdeapp/node_modules/printer/lib/node_printer.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 79. This version of Node.js requires NODE_MODULE_VERSION 67. Please try re-compiling or re-installing the module (for instance, using
npm rebuildor
npm install). at Object.Module._extensions..node (internal/modules/cjs/loader.js:751:18) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:560:12) at Function.Module._load (internal/modules/cjs/loader.js:552:3) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:22:18) at Object.<anonymous> (/Users/********/dev/zdeapp/node_modules/printer/lib/printer.js:10:22) at Module._compile (internal/modules/cjs/loader.js:722:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10) at Module.load (internal/modules/cjs/loader.js:620:32)
now trying with another node version:
sudo rm -rf node_modules/
nvm use v14.9.0
node -v
v14.9.0
npm install
node app.js
Error: The module '/Users/filipschlosser/dev/zdeapp/node_modules/printer/lib/node_printer.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 79. This version of Node.js requires NODE_MODULE_VERSION 83. Please try re-compiling or re-installing the module (for instance, using
npm rebuildor
npm install). at Object.Module._extensions..node (internal/modules/cjs/loader.js:1126:18) at Module.load (internal/modules/cjs/loader.js:940:32) at Function.Module._load (internal/modules/cjs/loader.js:781:14) at Module.require (internal/modules/cjs/loader.js:964:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/Users/filipschlosser/dev/zdeapp/node_modules/printer/lib/printer.js:10:22) at Module._compile (internal/modules/cjs/loader.js:1075:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1096:10) at Module.load (internal/modules/cjs/loader.js:940:32) at Function.Module._load (internal/modules/cjs/loader.js:781:14)
The text was updated successfully, but these errors were encountered: