What version of Node should I use

When I run yarn after the first install of the Sage theme I always get a lot of warnings etc.

I currently have:

  • node v12.22.6
  • yarn v1.22.17
  • npm v6.14.15

I just want to know whats the optimum versions to develop locally with Bedrock and Sage

I should say I only use the basic install composer commands:

composer create-project roots/bedrock

and

composer create-project roots/sage

And when I run yarn I get this…

warning browser-sync > socket.io > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning browser-sync > socket.io > engine.io > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning browser-sync > socket.io > socket.io-parser > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning browsersync-webpack-plugin > webpack-hot-middleware > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning browsersync-webpack-plugin > bs-html-injector > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning browsersync-webpack-plugin > bs-html-injector > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning browsersync-webpack-plugin > bs-html-injector > request > [email protected]: this library is no longer supported
warning browsersync-webpack-plugin > bs-html-injector > request > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning browsersync-webpack-plugin > bs-html-injector > dom-compare-temp > [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
warning copy-globs-webpack-plugin > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning copy-globs-webpack-plugin > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning copy-globs-webpack-plugin > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning copy-globs-webpack-plugin > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning css-loader > cssnano > autoprefixer > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > caniuse-api > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-svgo > [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning css-loader > cssnano > postcss-minify-selectors > postcss-selector-parser > [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
warning cssnano > cssnano-preset-default > postcss-svgo > [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning eslint > file-entry-cache > flat-cache > [email protected]: CircularJSON is in maintenance only, flatted is its successor.
warning [email protected]: This loader has been deprecated. Please use eslint-webpack-plugin
warning [email protected]: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
warning imagemin-mozjpeg > mozjpeg > bin-build > tempfile > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning imagemin-webpack-plugin > imagemin-svgo > [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning imagemin-webpack-plugin > babel-runtime > [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning node-sass > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning node-sass > node-gyp > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning resolve-url-loader > rework > css > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning stylelint > @stylelint/[email protected]: Use the original unforked package instead: postcss-markdown
warning uglifyjs-webpack-plugin > [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning webpack > watchpack > watchpack-chokidar2 > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning webpack > node-libs-browser > url > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning webpack-dev-middleware > webpack-log > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
[3/5] 🚚  Fetching packages...
[4/5] 🔗  Linking dependencies...
warning " > [email protected]" has unmet peer dependency "postcss@^8.1.0".
warning " > [email protected]" has incorrect peer dependency "eslint@^6.0.0 || ^7.0.0".
warning " > [email protected]" has incorrect peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > [email protected]" has incorrect peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > [email protected]" has incorrect peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > [email protected]" has unmet peer dependency "postcss@^7.0.0 || ^8.0.1".
warning " > [email protected]" has incorrect peer dependency "node-sass@^4.0.0".
warning " > [email protected]" has incorrect peer dependency "stylelint@^8.0.0".
warning " > [email protected]" has incorrect peer dependency "webpack@^1.13.2 || ^2.7.0 || ^3.11.0 || ^4.4.0".
warning " > [email protected]" has incorrect peer dependency "webpack@^4.0.0 || ^5.0.0".

I can run yarn start and it all works but feel like I could be missing out on a better development process if I didn’t have all those warnings?

Thoughts…?
Any help would be gratefully received :slight_smile:

I prefer using node LTS, there are multiple major version branches.

Use a node version manager like nvm with a .nvmrc file to lock the known working node version in.

1 Like

Will using node LTS v16 help with all those warnings?

3 Likes