Try on node 17.1.0 and npm 8.1.4 (both the latest stable). It raises:
0s (main) ~/dev/SyncedStore/examples/todo-react $ git show-ref HEAD
827470dcec6631015983d2ad41772a896c25b09a refs/remotes/origin/HEAD
0s (main) ~/dev/SyncedStore/examples/todo-react $ node --version
v17.1.0
0s (main) ~/dev/SyncedStore/examples/todo-react $ npm --version
8.1.4
0s (main) ~/dev/SyncedStore/examples/todo-react $ npm i
npm ERR! code EWORKSPACESCONFIG
npm ERR! workspaces config expects an Array
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jason/.npm/_logs/2021-11-21T14_50_45_924Z-debug.log
Try on node 14, npm 6.14.13. It works! :)
1s (main) ~/dev/SyncedStore/examples/todo-react $ nvm use v14
Now using node v14.17.1 (npm v6.14.13)
1s (main) ~/dev/SyncedStore/examples/todo-react $ node --version
v14.17.1
0s (main) ~/dev/SyncedStore/examples/todo-react $ npm --version
6.14.13
0s (main) ~/dev/SyncedStore/examples/todo-react $ npm i
> fsevents@1.2.13 install /Users/jason/dev/SyncedStore/examples/todo-react/node_modules/watchpack-chokidar2/node_modules/fsevents
> node install.js
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
> fsevents@1.2.13 install /Users/jason/dev/SyncedStore/examples/todo-react/node_modules/webpack-dev-server/node_modules/fsevents
> node install.js
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
> core-js@2.6.12 postinstall /Users/jason/dev/SyncedStore/examples/todo-react/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js@3.19.1 postinstall /Users/jason/dev/SyncedStore/examples/todo-react/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js:
> https://opencollective.com/core-js
> https://patreon.com/zloirock
> https://paypal.me/zloirock
> bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js-pure@3.19.1 postinstall /Users/jason/dev/SyncedStore/examples/todo-react/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
> ejs@2.7.4 postinstall /Users/jason/dev/SyncedStore/examples/todo-react/node_modules/ejs
> node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
> yjs@13.5.20 postinstall /Users/jason/dev/SyncedStore/examples/todo-react/node_modules/yjs
> node ./sponsor-y.js
added 1833 packages from 780 contributors and audited 1835 packages in 40.961s
159 packages are looking for funding
run `npm fund` for details
found 13 vulnerabilities (8 moderate, 4 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
╭───────────────────────────────────────────────────────────────╮
│ │
│ New major version of npm available! 6.14.13 → 8.1.4 │
│ Changelog: https://github.com/npm/cli/releases/tag/v8.1.4 │
│ Run npm install -g npm to update! │
│ │
╰───────────────────────────────────────────────────────────────╯
Cool, so it works on node 14, npm 6.14.13. Is the issue with node or npm? I'm assuming npm. Let's check. Update node 14 to npm 8.1.4:
0s [main] ~/dev/SyncedStore/examples/todo-react $ npm install -g npm@latest
/Users/jason/.nvm/versions/node/v14.17.1/bin/npm -> /Users/jason/.nvm/versions/node/v14.17.1/lib/node_modules/npm/bin/npm-cli.js
/Users/jason/.nvm/versions/node/v14.17.1/bin/npx -> /Users/jason/.nvm/versions/node/v14.17.1/lib/node_modules/npm/bin/npx-cli.js
+ npm@8.1.4
added 73 packages from 18 contributors, removed 286 packages and updated 149 packages in 4.745s
And here try node 14 with npm 8.1.4:
5s [main] ~/dev/SyncedStore/examples/todo-react $ rm -rf node_modules/
4s [main] ~/dev/SyncedStore/examples/todo-react $ npm i
npm ERR! code EWORKSPACESCONFIG
npm ERR! workspaces config expects an Array
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jason/.npm/_logs/2021-11-21T14_52_34_956Z-debug.log
0s [main] ~/dev/SyncedStore/examples/todo-react $ node --version
v14.17.1
npm0s [main] ~/dev/SyncedStore/examples/todo-react $ npm --version
8.1.4
0s [main] ~/dev/SyncedStore/examples/todo-react $