GEngine-js / GEngine

Rendering engine based on webgpu
https://gengine-js.github.io/Docs/
131 stars 8 forks source link

Failed to build, npm install error. #4

Closed suzp1984 closed 1 year ago

suzp1984 commented 1 year ago
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: GEngine@1.0.0
npm ERR! Found: rollup@3.10.0
npm ERR! node_modules/rollup
npm ERR!   dev rollup@"3.10.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rollup@"^2.0.0" from rollup-plugin-terser@7.0.2
npm ERR! node_modules/rollup-plugin-terser
npm ERR!   dev rollup-plugin-terser@"^7.0.2" 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!

I'm using node version v16.15.0. I believe you need to upload the package-lock.json file, otherwise, other dev can't build this project, maybe also restrict the node version in the package.json?

TOM720 commented 1 year ago

Thank you for your advice, package-lock.json has been uploaded. you can try it again

suzp1984 commented 1 year ago

It works, Thanks. Close this issue now.