styleguidist / react-styleguidist

Isolated React component development environment with a living style guide
https://react-styleguidist.js.org/
MIT License
10.82k stars 1.44k forks source link

[Bug] npm i react-styleguidist@8.0.6 is broken #1287

Closed kopax closed 5 years ago

kopax commented 5 years ago

We are trying to install react-styleguidist 8.0.6 but it is now broken:

$ npm i react-styleguidist@8.0.6
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN react-styleguidist@8.0.6 requires a peer of react@>=15 but none is installed. You must install peer dependencies yourself.
npm WARN react-styleguidist@8.0.6 requires a peer of react-dom@>=15 but none is installed. You must install peer dependencies yourself.
npm WARN css-loader@1.0.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN markdown-to-jsx@6.9.1 requires a peer of react@>= 0.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-group@1.0.6 requires a peer of react@>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-codemirror2@5.1.0 requires a peer of react@>=15.5 <=16.x but none is installed. You must install peer dependencies yourself.
npm WARN react-icons@2.2.7 requires a peer of react@^0.14.0 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-icons@2.2.7 requires a peer of react-dom@^0.14.0 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN terser-webpack-plugin@1.2.3 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@3.2.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-icon-base@2.1.0 requires a peer of react@* but none is installed. You must install peer dependencies yourself.
npm WARN react-icon-base@2.1.0 requires a peer of react-dom@* but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.6.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! path /home/dka/workspace/github.com/Sylvain59650/tree-operations/node_modules/highlight.js/tools/build.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/dka/workspace/github.com/Sylvain59650/tree-operations/node_modules/highlight.js/tools/build.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dka/.npm/_logs/2019-02-25T15_29_22_057Z-debug.log

It can be solved if we fix the version:

$ npm i highlight.js@9.12.0 --save-dev
$ npm i react-styleguidist@8.0.6

This is highlight.js issue not respecting semver, but perhaps you will agree to fix the version and tag a 8.0.7 version?

This cause issue in all our projects which are using fixed version of react-styleguidist@8.0.6.

kopax commented 5 years ago

We decided to migrate to v9 :p