You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i -g @platformos/pos-cli should install pos-cli without errors.
Actual behavior
Trying to npm i -g @platformos/pos-cli results in an error from node-gyp trying to rebuild fsevents. The problem occurs on npm above 10.3.0. Downgrading npm fixes the problem.
The text was updated successfully, but these errors were encountered:
From what I've investigated, the failing package is fsevents. It's currently used as a dependency of chokidar, and chokidar is used as a dependency of livereload.
Removing those fixes the installation issue. I've tried to replace chokidar with @parcel/watcher but it does not trigger events on folder operations (parcel-bundler/watcher#165). turbowatch on the other hand is ESM package so we can't use it as we're stuck in CJS.
z-x
changed the title
Can't install pos-cli on npm > 10.3.0
Can't install pos-cli on npm > 10.3.0 (POS-101)
May 28, 2024
Expected behavior
npm i -g @platformos/pos-cli
should installpos-cli
without errors.Actual behavior
Trying to
npm i -g @platformos/pos-cli
results in an error fromnode-gyp
trying to rebuildfsevents
. The problem occurs onnpm
above 10.3.0. Downgradingnpm
fixes the problem.The text was updated successfully, but these errors were encountered: