gibber-cc / gibber

An audiovisual live coding environment for the browser
MIT License
914 stars 81 forks source link

unable to install: bin/utils,js missing #73

Closed radorossum closed 2 years ago

radorossum commented 3 years ago

25 packages are looking for funding run npm fund for details

24 vulnerabilities (2 low, 8 moderate, 14 high)

To address issues that do not require attention, run: npm audit fix

To address all issues possible (including breaking changes), run: npm audit fix --force

Some issues need review, and may require choosing a different dependency.

Run npm audit for details. liubo@lbmbp-2 gibber % npm start

gibber@2.0.0 start cd playground; node server.js

node:internal/modules/cjs/loader:488 throw e; ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './bin/utils.js' is not defined by "exports" in /Users/liubo/dev/gibbers/gibber/node_modules/y-websocket/package.json at new NodeError (node:internal/errors:371:5) at throwExportsNotFound (node:internal/modules/esm/resolve:429:9) at packageExportsResolve (node:internal/modules/esm/resolve:683:3) at resolveExports (node:internal/modules/cjs/loader:482:36) at Function.Module._findPath (node:internal/modules/cjs/loader:522:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:999:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/Users/liubo/dev/gibbers/gibber/playground/server.js:4:27) { code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' }

Node.js v17.1.0

radorossum commented 3 years ago

was able to fix using this https://github.com/yjs/y-websocket/issues/76

charlieroberts commented 2 years ago

@radorossum I "fixed" this by specifying 1.3.12 as the version to be used in package.json. I think there will be better support in the future by yjs for esm modules, so I'll try to remember to revisit this then... but in the meantime this works for now.