Node 22 - Sage 10 fresh install Unexpected end of JSON input

Thanks for checking. I realized I had installed nvm as well the other day for management not realizing I could just as well do that with Volta. And also when order in .zshrc is off this can cause issues. So I just did

nvm deactivate

Next, I unloaded the command to uninstall NVM:

nvm unload

Then I removed

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm

from ~/.zshrc . This based on https://www.linode.com/docs/guides/how-to-install-use-node-version-manager-nvm/#nvm-uninstall-steps Then I reloaded all open shells and

yarn
➀ YN0087: Migrated your project to the latest Yarn version πŸš€

➀ YN0000: · Yarn 4.5.0
➀ YN0000: β”Œ Resolution step
➀ YN0085: β”‚ + @roots/bud-tailwindcss@npm:6.23.3, @roots/bud@npm:6.23.3, @roots/sage@npm:6.23.3, @alcalzone/ansi-tokenize@npm:0.1.3, @alloc/quick-lru@npm:5.2.0, and 892 more.
➀ YN0000: β”” Completed in 9s 387ms
➀ YN0000: β”Œ Post-resolution validation
➀ YN0086: β”‚ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➀ YN0000: β”” Completed
➀ YN0000: β”Œ Fetch step
➀ YN0013: β”‚ 45 packages were added to the project (+ 56.16 MiB).
➀ YN0000: β”” Completed in 14s 211ms
➀ YN0000: β”Œ Link step
➀ YN0007: β”‚ @roots/bud-framework@npm:6.23.3 must be built because it never has been before or the last one failed
➀ YN0007: β”‚ @swc/core@npm:1.7.2 [e7bb3] must be built because it never has been before or the last one failed
➀ YN0007: β”‚ core-js-pure@npm:3.26.1 must be built because it never has been before or the last one failed
➀ YN0000: β”” Completed in 8s 831ms
➀ YN0000: · Done with warnings in 32s 520ms
 user@mbp ξ‚° ~/code/site.com/site/web/app/themes/nynaeve ξ‚° yarn build

β•­ sage [f7efd2aff6dcda05]                                                                                                                                                              ./public
β”‚
β”‚ app
β”‚  β—‰ js/runtime.c39a01.js                                                                                                                                                             βœ” 1.18 kB
β”‚  β—‰ css/app.53672d.css                                                                                                                                                               βœ” 7.03 kB
β”‚  β—‰ js/app.f11475.js                                                                                                                                                               βœ” 349 bytes
β”‚
β”‚ editor
β”‚  β—‰ js/runtime.c39a01.js                                                                                                                                                             βœ” 1.18 kB
β”‚  β—‰ css/editor.ef46db.css                                                                                                                                                                  βœ” ΓΈ
β”‚  β—‰ js/editor.1a8d02.js                                                                                                                                                              βœ” 1.66 kB
β”‚
β•° 1s 284ms 8 modules [0/8 modules cached]

And when I checked Volta in installed theme with pinned version all seems well

volta list
⚑️ Currently active tools:

    Node: v22.11.0 (default)
    Yarn: v4.5.0 (default)
    Tool binaries available: NONE

See options for more detailed reports by running `volta list --help`.
1 Like