analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Package cannot install on node > v14

Open cpreid opened this issue 3 years ago • 4 comments

whoops@whoops-mbp16 analytics % npm install && npm run setup
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: root@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/rollup
npm ERR!   dev rollup@"^2.67.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer rollup@">=0.66.0 <2" from [email protected]
npm ERR! node_modules/rollup-plugin-uglify
npm ERR!   dev rollup-plugin-uglify@"^6.0.4" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/whoops/.npm/eresolve-report.txt for a full report.

Fix nvm use 14, and redo npm install && npm run setup

cpreid avatar Apr 28 '22 21:04 cpreid

Also noticing there are a lot of assumptions for globally installed npm packages (ie, pnpm)

cpreid avatar Apr 28 '22 21:04 cpreid

Ah yeah switch to Pnpm

use pnpm install instead

DavidWells avatar Apr 28 '22 21:04 DavidWells

Thanks. I'm noticing that /packages contains the various extensions for each vendor, but then within each vendor package it instructs to npm install [vendor]. Is that next step necessary?

cpreid avatar Apr 28 '22 22:04 cpreid

Ah yeah switch to Pnpm

use pnpm install instead

Is this actually the intended solution or a temporary work around?

desa avatar Jun 12 '22 23:06 desa