three.interaction.js icon indicating copy to clipboard operation
three.interaction.js copied to clipboard

NPM install fails

Open psytron opened this issue 4 years ago • 5 comments

Installing with NPM now gives this error: Any thoughts ?

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/three
npm ERR!   three@"^0.117.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer three@"^0.89.0" from [email protected]
npm ERR! node_modules/three.interaction
npm ERR!   three.interaction@"" 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.

psytron avatar Nov 11 '20 01:11 psytron

This lib is great!
Confirmed Fix: remove the Peer Dependency block = three:0.89.0 from package.json.

Posts on Three.js forum ( discourse.threejs.org ) recommend to discontinue using three.interaction, but it's a great lib!

Do you want pull request to update version number in Peer Dependency block in package.json?

https://discourse.threejs.org/t/three-interaction-replacement/20629

psytron avatar Nov 11 '20 02:11 psytron

npm install -S three.interaction --force Fixes it, but could have potential issues.

pumanitro avatar May 05 '21 09:05 pumanitro

It didnt work for me. I am using ThreeJS v129

tingspain avatar Jun 21 '21 12:06 tingspain

Still the same issue. I am using ThreeJS v0.133.1

thisprojectworks avatar Oct 18 '21 14:10 thisprojectworks

Still using fork of this great lib. But, beyond v0.130 it seems the lib has other issues beyond just the peer dependency block.

psytron avatar Apr 24 '22 19:04 psytron