Thank you. This is my first time updating a JS/React project after several years not using it, so I’m not really familiar with the process of, espc when it comes to dependencies.
I’ve run npm update
which results in me getting warnings back about not having peer dependencies.
Here is the full reading of the actions I took trying to get npm stuff all up to date:
└─➤ npm update master
npm WARN react-mailchimp-subscribe@2.1.3 requires a peer of react@>=15 but none is installed. You must install peer dependencies yourself.
npm WARN frontity@1.17.0 requires a peer of @frontity/core@^1.10.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react@>= 16.8.0 but none is installed. You must install peer dependencies
yourself.
npm WARN react-spring@8.0.27 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-intersection-observer@8.32.0 requires a peer of react@^15.0.0 || ^16.0.0 || ^17.0.0|| ^18.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/styled@11.3.0 requires a peer of react@>=16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/react@11.4.1 requires a peer of react@>=16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet-async@1.0.9 requires a peer of react@^16.6.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet-async@1.0.9 requires a peer of react-dom@^16.6.0 || ^17.0.0 but none is installed. You must install
peer dependencies yourself.
npm WARN @loadable/component@5.15.0 requires a peer of react@>=16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/babel-plugin@11.3.0 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-jsx@7.14.5 requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/core@10.1.1 requires a peer of react@>=16.3.0 but none is installed. You must install peer dependencies
yourself.
npm WARN desert-jackalope@1.3.0 No license field.
+ react-mailchimp-subscribe@2.1.3
+ @frontity/html2react@1.7.0
+ @frontity/components@1.8.1
+ frontity@1.17.0
+ react-spinners@0.6.1
+ react-spring@8.0.27
added 247 packages from 274 contributors and audited 248 packages in 49.867s
24 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
┌─ /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope
└─➤ npm install react --save-dev master
npm WARN @babel/plugin-syntax-jsx@7.14.5 requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/babel-plugin@11.3.0 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN frontity@1.17.0 requires a peer of @frontity/core@^1.10.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet-async@1.0.9 requires a peer of react-dom@^16.6.0 || ^17.0.0 but none is installed. You must install
peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN desert-jackalope@1.3.0 No license field.
+ react@17.0.2
added 1 package and audited 249 packages in 1.181s
24 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
┌─ /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope
└─➤ npm install babel --save-dev master
npm WARN deprecated babel@6.23.0: In 6.x, the babel package has been deprecated in favor of babel-cli. Check https://opencollective.com/babel to support the Babel maintainers
npm WARN @babel/plugin-syntax-jsx@7.14.5 requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/babel-plugin@11.3.0 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN frontity@1.17.0 requires a peer of @frontity/core@^1.10.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet-async@1.0.9 requires a peer of react-dom@^16.6.0 || ^17.0.0 but none is installed. You must install
peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN desert-jackalope@1.3.0 No license field.
+ babel@6.23.0
added 1 package from 1 contributor and audited 250 packages in 0.958s
24 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
┌─ /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope
└─➤ npm install babel-cli --save-dev master
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js@2.6.12: 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.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
> core-js@2.6.12 postinstall /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope/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 -)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @babel/plugin-syntax-jsx@7.14.5 requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/babel-plugin@11.3.0 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN frontity@1.17.0 requires a peer of @frontity/core@^1.10.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet-async@1.0.9 requires a peer of react-dom@^16.6.0 || ^17.0.0 but none is installed. You must install
peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN desert-jackalope@1.3.0 No license field.
+ babel-cli@6.26.0
added 216 packages from 83 contributors and audited 467 packages in 16.575s
26 packages are looking for funding
run `npm fund` for details
found 3 vulnerabilities (1 low, 2 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
┌─ /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope
└─➤ npm audit fix master
npm WARN @babel/plugin-syntax-jsx@7.14.5 requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/babel-plugin@11.3.0 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN frontity@1.17.0 requires a peer of @frontity/core@^1.10.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet-async@1.0.9 requires a peer of react-dom@^16.6.0 || ^17.0.0 but none is installed. You must install
peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN desert-jackalope@1.3.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
up to date in 1.29s
26 packages are looking for funding
run `npm fund` for details
fixed 0 of 3 vulnerabilities in 467 scanned packages
3 vulnerabilities required manual review and could not be updated
┌─ /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope
└─➤ npm install emotion --save-dev master
npm WARN @babel/plugin-syntax-jsx@7.14.5 requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @emotion/babel-plugin@11.3.0 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN frontity@1.17.0 requires a peer of @frontity/core@^1.10.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet-async@1.0.9 requires a peer of react-dom@^16.6.0 || ^17.0.0 but none is installed. You must install
peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN desert-jackalope@1.3.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ emotion@11.0.0
added 1 package from 1 contributor and audited 468 packages in 2.124s
26 packages are looking for funding
run `npm fund` for details
found 3 vulnerabilities (1 low, 2 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
┌─ /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope
└─➤ npm install @babel/core --save-dev master
npm WARN frontity@1.17.0 requires a peer of @frontity/core@^1.10.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet-async@1.0.9 requires a peer of react-dom@^16.6.0 || ^17.0.0 but none is installed. You must install
peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN desert-jackalope@1.3.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ @babel/core@7.15.0
added 34 packages from 18 contributors and audited 502 packages in 7.863s
29 packages are looking for funding
run `npm fund` for details
found 3 vulnerabilities (1 low, 2 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
┌─ /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope
└─➤ npm install @frontity/core --save-dev master
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated uuid@3.4.0: 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.
> core-js@3.16.2 postinstall /mnt/c/Users/aslan/home/work/frontity-server/packages/desert-jackalope/node_modules/@frontity/core/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 -)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN react-spinners@0.6.1 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spinners@0.6.1 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN desert-jackalope@1.3.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ @frontity/core@1.14.3
added 560 packages from 269 contributors and audited 1063 packages in 61.73s
53 packages are looking for funding
run `npm fund` for details
found 4 vulnerabilities (1 low, 3 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
Is this the correct way of doing things? Do I just keep installing dev dependencies for everything that it throws a warning for? Or is that the incorrect way to approach this issue?
I am thinking it might be simpler for me to simply remake this theme over again using the latest version of the mars-theme. I made some pretty big changes in structure from the mars-theme but by and large most of the difference is in the styles I wrote. I didn’t write any new components really.
But also if this is a point where I can learn a necessary skill (updating and maintaining dependencies on projects over longer periods of time) then I want to push myself to learn the proper way to do things. But I also don’t know if I’m barking up the entirely wrong tree.