I have an old app built using:
erlang 24.2.1
elixir 1.13.2-otp-24
nodejs 16.13.2
I’m afraid to upgrade anything, as it will likely break the app.
I’m trying to install npm dependencies in package.json
running npm install in the package.json’s directory, I get these errors:
npm WARN deprecated core-js@2.6.11: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /home/user/Applications/cl/apps/swing/assets/node_modules/elm
npm ERR! command failed
npm ERR! command sh -c binwrap-install
npm ERR! fs.js:47
npm ERR! } = primordials;
npm ERR! ^
npm ERR!
npm ERR! ReferenceError: primordials is not defined
npm ERR! at fs.js:47:5
npm ERR! at req_ (/home/user/Applications/cl/apps/swing/assets/node_modules/natives/index.js:143:24)
npm ERR! at Object.req [as require] (/home/user/Applications/cl/apps/swing/assets/node_modules/natives/index.js:55:10)
npm ERR! at Object.<anonymous> (/home/user/Applications/cl/apps/swing/assets/node_modules/unzip/node_modules/graceful-fs/fs.js:1:37)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1101:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR! at require (node:internal/modules/cjs/helpers:102:18
I tried changing permissions in the folder to the most liberal possible.
I tried npm install core-js@latest
I’ve checked for conflicts between nodejs & npm version:
nodejs v16.13.2
npm 8.1.2
… they shouldn’t conflict.
Tried upgrade npm to 9.6.5 with nodejs v16.13.2.
then running pm update -g
I’m still getting the same issue.