three-geo: error with es-pack-js when executing 'npm i'

Hope someone know this problem. I just clone this repo, cd three-geo and npm i, then comes this error below.

node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

es-pack-js@0.5.2 postinstall D:\gisdemo8threejs\three-geo\node_modules\es-pack-js (cd ./node-polyfill && npm run install); (cd ./rustwasm-polyfill && npm i);

此时不应有 (cd。 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\es-pack-js\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! es-pack-js@0.5.2 postinstall: (cd ./node-polyfill && npm run install); (cd ./rustwasm-polyfill && npm i); npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the es-pack-js@0.5.2 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Apologies. my mistake. I had skipped a step and VScode wasn’t fully hooking into WSL when I booted the project.

Fixed it, and it’s all working fine under WSL2 as per your original docs (after installing node etc as per MS instructions above).

Thanks for the help, sounding board helps troubleshoot. Sorry to bother you, but at least you can add some extra instructions perhaps for WIndows users now to use WSL. Microsoft actually recommends this for js development now anyway, so all good.

Looking forward to having a play with it, some great work you’ve done there!

You might be interested in what I want to add actually, could be a useful addition. Haven’t done three.js for a while so kind of starting from scratch again.