Cannot install package on node 8.9.0
bmadzinski opened this issue · 2 comments
bmadzinski commented
pigpio supports Node.js versions 8, 10, 12, 13 and 14.
pi@raspberrypi:~/Projects/orms-raspberry-pi $ yarn add pigpio
yarn add v1.22.4
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info xpc-connection@0.1.4: The platform "linux" is incompatible with this module.
info "xpc-connection@0.1.4" is an optional dependency and failed compatibility check. Excluding it from installation.
error source-map-loader@1.0.0: The engine "node" is incompatible with this module. Expected version ">= 10.13.0". Got "8.9.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
pi@raspberrypi:~/Projects/orms-raspberry-pi $ node --version
v8.9.0
pi@raspberrypi:~/Projects/orms-raspberry-pi $ npm --version
5.5.1
pi@raspberrypi:~/Projects/orms-raspberry-pi $ yarn --version
1.22.4
Any ideas?
fivdi commented
The error message shown above is:
error source-map-loader@1.0.0: The engine "node" is incompatible with this module. Expected version ">= 10.13.0". Got "8.9.0"
error Found incompatible module.
The error is occurring because source-map-loader@1.0.0 requires Node 10.13.0 or higher to function correctly but Node 8.9.0 is being used. See here.
As can he seen here, pigpio installs successfully with Node.js versions 8, 10, 12, 13 and 14.
This issue is not related to pigpio.
bmadzinski commented
Problem was caused by changing version with n node version manager
there had to be some cache with previous version.
Restarting raspberry pi resolved issue.