model-viewer: `postinstall` script not found
Description
➤ YN0009: │ @google/model-viewer@npm:3.2.0 [58ced] couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-dcba39bc/build.log)
➤ YN0007: │ trisetra-decor@workspace:. must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 6s 348ms
➤ YN0000: Failed with errors in 19s 639ms
# This file contains the result of Yarn building a package (@google/model-viewer@virtual:58ced34e477cff2c62a5e26ca6c375fed90e1af1a4fcc875901614bfd6afa62fbc58ffae3a1f03b621a96e23ef501c7dc5c56da1d8c169f9ff70fe73a6e888d7#npm:3.2.0)
# Script name: postinstall
node:internal/modules/cjs/loader:1078
throw err;
^
Error: Cannot find module '/home/subhankar/workspace/trisetra-decor/node_modules/scripts/postinstall.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.16.0
This error pops up when I try to install @google/model-viewer
with Yarn 2+. I works perfectly fine with "@google/model-viewer": "^3.1.1"
Version
- model-viewer: v3.2.0
- yarn: v3.6.1
- node: v18.16.0
Browser Affected
- Chrome, version: xx.x.xxxx.xx
- Edge
- Firefox
- IE
- Safari
OS
- Android
- iOS
- Linux
- MacOS
- Windows
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 3
- Comments: 15 (3 by maintainers)
Commits related to this issue
- check postinstall file exists https://github.com/google/model-viewer/issues/4362 — committed to btopro/model-viewer by btopro a year ago
- check postinstall file exists https://github.com/google/model-viewer/issues/4362 (#4363) — committed to google/model-viewer by btopro a year ago
- check postinstall file exists https://github.com/google/model-viewer/issues/4362 (#4363) — committed to vidinoti/model-viewer by btopro a year ago
Sorry, this turned into a bit of a perfect storm of difficult timing. My wife just gave birth, so I’ve been on parental leave. Working on this now, hopefully I’ll have a release out this week, finally.
Congrats! No hurry, better leave that computer off and take your time. We wont retire because of that 😄
working on it, but we need a better fix: #4368, which isn’t quite ready yet. See you on Monday.