-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to uninstall React Storybook? #979
Comments
@dfrho could you give more details how to reproduce this issue: Which way did you install Storybook into your project? |
We're release a new version real soon. You can try it already. In a react project directory: npm i @storybook/cli@alpha
getstorybook |
How to uninstall storybook from the react project ? |
We don't have a cli command to automate this. Storybook doesn't know where your stories are until runtime, so it's hard to know exactly what to delete. Also users sometimes have multiple storybooks in 1 repo, so overall it's rather complicated. Adding files is usually safer then removing... we might remove something that the user can't recover from. I understand it's a chore to follow the above list of steps manually. I agree. I'm open to debating this, if you have a suggestion on how to approach this in a safe manner, I'm all ears. |
Hi ndelangen, Thanks for your great description for removing storybook. Here I would like to provide more specific details.
|
|
Something like: rm -rf node_modules/ this may need to fix trailing comma in package.json. mv .storybook/ .storybook.bak yarn install finally: npx sb init |
Thank you. |
we can automate this process using task manager tools like |
what dependencies does storybook add to package.json?? |
I delete these. Can someone let us know if there are any others?
|
npm uninstall --save -dev @kadira/storybook
leaves a bunch of extra files. Here's the error message, and thanks in advance:`npm WARN gentlyRm not removing /Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook/node_modules/.bin/webpack as it wasn't installed by /Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook/node_modules/webpack
@kadira/react-split-pane@1.4.7 node_modules/@kadira/react-split-pane -> node_modules/@kadira/react-split-pane
@kadira/storybook@2.35.3 node_modules/@kadira/storybook -> node_modules/@kadira/storybook
@kadira/storybook-addon-actions@1.1.3 node_modules/@kadira/storybook-addon-actions -> node_modules/@kadira/storybook-addon-actions
@kadira/storybook-addon-links@1.0.1 node_modules/@kadira/storybook-addon-links -> node_modules/@kadira/storybook-addon-links
@kadira/storybook-addons@1.6.1 node_modules/@kadira/storybook-addons -> node_modules/@kadira/storybook-addons
@kadira/storybook-channel@1.1.0 node_modules/@kadira/storybook-channel -> node_modules/@kadira/storybook-channel
@kadira/storybook-channel-postmsg@2.0.1 node_modules/@kadira/storybook-channel-postmsg -> node_modules/@kadira/storybook-channel-postmsg
@kadira/storybook-ui@3.11.0 node_modules/@kadira/storybook-ui -> node_modules/@kadira/storybook-ui
airbnb-js-shims@1.1.1 node_modules/airbnb-js-shims -> node_modules/airbnb-js-shims
alphanum-sort@1.0.2 node_modules/alphanum-sort -> node_modules/alphanum-sort
ansi-html@0.0.7 node_modules/ansi-html -> node_modules/ansi-html
argparse@1.0.9 node_modules/argparse -> node_modules/argparse
array-includes@3.0.3 node_modules/array-includes -> node_modules/array-includes
ast-types@0.9.6 node_modules/ast-types -> node_modules/ast-types
autoprefixer@6.7.7 node_modules/autoprefixer -> node_modules/autoprefixer
babel-plugin-react-docgen@1.4.2 node_modules/babel-plugin-react-docgen -> node_modules/babel-plugin-react-docgen
babel-plugin-transform-object-rest-spread@6.16.0 node_modules/babel-plugin-transform-object-rest-spread -> node_modules/babel-plugin-transform-object-rest-spread
babel-plugin-transform-react-constant-elements@6.9.1 node_modules/babel-plugin-transform-react-constant-elements -> node_modules/babel-plugin-transform-react-constant-elements
babel-plugin-transform-runtime@6.15.0 node_modules/babel-plugin-transform-runtime -> node_modules/babel-plugin-transform-runtime
babel-preset-env@0.0.6 node_modules/babel-preset-env -> node_modules/babel-preset-env
babel-preset-es2016@6.24.1 node_modules/babel-preset-es2016 -> node_modules/babel-preset-es2016
babel-preset-es2017@6.24.1 node_modules/babel-preset-es2017 -> node_modules/babel-preset-es2017
babel-preset-latest@6.16.0 node_modules/babel-preset-latest -> node_modules/babel-preset-latest
babel-preset-react-app@1.0.0 node_modules/babel-preset-react-app -> node_modules/babel-preset-react-app
npm WARN @kadira/storybook-addon-actions@1.1.3 requires a peer of @kadira/storybook-addons@^1.3.0 but none was installed.
npm WARN @kadira/storybook-addon-links@1.0.1 requires a peer of @kadira/storybook-addons@^1.3.0 but none was installed.
npm WARN url-loader@0.5.8 requires a peer of file-loader@* but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/react-split-pane@1.4.7 (node_modules/@kadira/react-split-pane):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/react-split-pane' -> '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/react-split-pane'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/storybook@2.35.3 (node_modules/@kadira/storybook):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook' -> '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/storybook-addon-actions@1.1.3 (node_modules/@kadira/storybook-addon-actions):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-addon-actions' -> '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-addon-actions'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/storybook-addon-links@1.0.1 (node_modules/@kadira/storybook-addon-links):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-addon-links' -> '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-addon-links'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/storybook-addons@1.6.1 (node_modules/@kadira/storybook-addons):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-addons' -> '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-addons'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/storybook-channel@1.1.0 (node_modules/@kadira/storybook-channel):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-channel' -> '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-channel'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/storybook-channel-postmsg@2.0.1 (node_modules/@kadira/storybook-channel-postmsg):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-channel-postmsg' -> '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-channel-postmsg'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/storybook-ui@3.11.0 (node_modules/@kadira/storybook-ui):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-ui' -> '/Users/davidrhodes/Desktop/biblio/node_modules/@kadira/storybook-ui'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: airbnb-js-shims@1.1.1 (node_modules/airbnb-js-shims):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/airbnb-js-shims' -> '/Users/davidrhodes/Desktop/biblio/node_modules/airbnb-js-shims'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: alphanum-sort@1.0.2 (node_modules/alphanum-sort):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/alphanum-sort' -> '/Users/davidrhodes/Desktop/biblio/node_modules/alphanum-sort'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-html@0.0.7 (node_modules/ansi-html):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/ansi-html' -> '/Users/davidrhodes/Desktop/biblio/node_modules/ansi-html'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: argparse@1.0.9 (node_modules/argparse):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/argparse' -> '/Users/davidrhodes/Desktop/biblio/node_modules/argparse'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: array-includes@3.0.3 (node_modules/array-includes):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/array-includes' -> '/Users/davidrhodes/Desktop/biblio/node_modules/array-includes'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ast-types@0.9.6 (node_modules/ast-types):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/ast-types' -> '/Users/davidrhodes/Desktop/biblio/node_modules/ast-types'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: autoprefixer@6.7.7 (node_modules/autoprefixer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/autoprefixer' -> '/Users/davidrhodes/Desktop/biblio/node_modules/autoprefixer'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-react-docgen@1.4.2 (node_modules/babel-plugin-react-docgen):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-plugin-react-docgen' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-plugin-react-docgen'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-transform-object-rest-spread@6.16.0 (node_modules/babel-plugin-transform-object-rest-spread):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-plugin-transform-object-rest-spread' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-plugin-transform-object-rest-spread'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-transform-react-constant-elements@6.9.1 (node_modules/babel-plugin-transform-react-constant-elements):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-plugin-transform-react-constant-elements' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-plugin-transform-react-constant-elements'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-transform-runtime@6.15.0 (node_modules/babel-plugin-transform-runtime):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-plugin-transform-runtime' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-plugin-transform-runtime'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-preset-env@0.0.6 (node_modules/babel-preset-env):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-env' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-env'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-preset-es2016@6.24.1 (node_modules/babel-preset-es2016):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-es2016' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-es2016'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-preset-es2017@6.24.1 (node_modules/babel-preset-es2017):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-es2017' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-es2017'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-preset-latest@6.16.0 (node_modules/babel-preset-latest):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-latest' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-latest'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-preset-react-app@1.0.0 (node_modules/babel-preset-react-app):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-react-app' -> '/Users/davidrhodes/Desktop/biblio/node_modules/babel-preset-react-app'`
The text was updated successfully, but these errors were encountered: