-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
It looks like to build this package a package-lock.json file must exist.
Of course this doesn't exist if using yarn to maintain a project.
The offending action seems to be
"preinstall": "npx npm-force-resolutions"
Error on yarn install:
error <...>/node_modules/rollback: Command failed.
Exit code: 1
Command: npx npm-force-resolutions
Arguments:
Directory: <...>/node_modules/rollback
Output:
Error: ENOENT: no such file or directory, open './package-lock.json'
at Object.openSync (node:fs:506:3)
at Object.fs [as readFileSync] (node:fs:402:35)
at npm_force_resolutions$core$node_slurp (<...>/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.cljs:15:20)
at npm_force_resolutions$core$read_json (<...>/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.cljs:22:23)
at switch__2144__auto__ (<...>/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.cljs:151:3)
at <...>/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.cljs:151:3
at npm_force_resolutions$core$update_package_lock_$_state_machine__2145__auto____1 (<...>/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.js:648:4)
at cljs.core.async.impl.ioc-helpers/FN-IDX (<...>/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.js:664:88)
at cljs.core.async.impl.ioc-helpers/run-state-machine (<...>/node_modules/npm-force-resolutions/out/cljs/core/async/impl/ioc_helpers.cljs:35:23)
at cljs$core$async$impl$ioc_helpers$run_state_machine_wrapped (<...>/node_modules/npm-force-resolutions/out/cljs/core/async/impl/ioc_helpers.cljs:39:6)
It may be relevant that the repo being installed into is a module, eg: package> "type": "module"
Great tool, so I hope this can be resolved. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels