Storybook: How to uninstall React Storybook?

Created on 30 Apr 2017  路  5Comments  路  Source: storybookjs/storybook

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

  • [email protected] node_modules/@kadira/storybook-ui/node_modules/qs
  • [email protected] node_modules/@kadira/storybook/node_modules/acorn
  • [email protected] node_modules/@kadira/storybook/node_modules/async
  • [email protected] node_modules/@kadira/storybook/node_modules/camelcase
  • [email protected] node_modules/@kadira/storybook/node_modules/cliui
  • [email protected] node_modules/@kadira/storybook/node_modules/crypto-browserify
  • [email protected] node_modules/@kadira/storybook/node_modules/enhanced-resolve/node_modules/memory-fs
  • [email protected] node_modules/@kadira/storybook/node_modules/interpret
  • [email protected] node_modules/@kadira/storybook/node_modules/memory-fs
  • [email protected] node_modules/@kadira/storybook/node_modules/node-libs-browser
  • [email protected] node_modules/@kadira/storybook/node_modules/tapable
  • [email protected] node_modules/@kadira/storybook/node_modules/enhanced-resolve
  • [email protected] node_modules/@kadira/storybook/node_modules/uglify-js/node_modules/async
  • [email protected] node_modules/@kadira/storybook/node_modules/watchpack/node_modules/async
  • [email protected] node_modules/@kadira/storybook/node_modules/watchpack
  • [email protected] node_modules/@kadira/storybook/node_modules/yargs
  • [email protected] node_modules/@kadira/storybook/node_modules/uglify-js
  • [email protected] node_modules/@kadira/storybook/node_modules/webpack
  • [email protected] node_modules/array-includes/node_modules/es-abstract
  • [email protected] node_modules/babel-plugin-react-docgen/node_modules/lodash
  • [email protected] node_modules/babel-preset-es2016/node_modules/babylon
  • [email protected] node_modules/babel-preset-es2016/node_modules/core-js
  • [email protected] node_modules/babel-preset-es2016/node_modules/babel-runtime
  • [email protected] node_modules/babel-preset-es2016/node_modules/babel-messages
  • [email protected] node_modules/babel-preset-es2016/node_modules/js-tokens
  • [email protected] node_modules/babel-preset-es2016/node_modules/babel-code-frame
  • [email protected] node_modules/babel-preset-es2016/node_modules/lodash
  • [email protected] node_modules/babel-preset-es2016/node_modules/babel-types
  • [email protected] node_modules/babel-preset-es2016/node_modules/ms
  • [email protected] node_modules/babel-preset-es2016/node_modules/debug
  • [email protected] node_modules/babel-preset-es2016/node_modules/babel-traverse
  • [email protected] node_modules/babel-preset-es2016/node_modules/babel-helper-explode-assignable-expression
  • [email protected] node_modules/babel-preset-es2016/node_modules/babel-helper-builder-binary-assignment-operator-visitor
  • [email protected] node_modules/babel-preset-es2016/node_modules/babel-plugin-transform-exponentiation-operator
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-plugin-syntax-trailing-function-commas
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-traverse/node_modules/babylon
  • [email protected] node_modules/babel-preset-es2017/node_modules/core-js
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-runtime
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-messages
  • [email protected] node_modules/babel-preset-es2017/node_modules/js-tokens
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-code-frame
  • [email protected] node_modules/babel-preset-es2017/node_modules/lodash
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-types
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-helper-get-function-arity
  • [email protected] node_modules/babel-preset-es2017/node_modules/ms
  • [email protected] node_modules/babel-preset-es2017/node_modules/debug
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-traverse
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-template
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-helper-function-name
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-helper-remap-async-to-generator
  • [email protected] node_modules/babel-preset-es2017/node_modules/babel-plugin-transform-async-to-generator
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-class-properties/node_modules/regenerator-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-es2015-destructuring/node_modules/regenerator-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-es2015-parameters/node_modules/regenerator-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-regenerator/node_modules/regenerator-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/core-js
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-class-properties/node_modules/babel-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-class-properties
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-es2015-destructuring/node_modules/babel-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-es2015-destructuring
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-es2015-parameters
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-regenerator/node_modules/babel-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-plugin-transform-regenerator
  • [email protected] node_modules/babel-preset-react-app/node_modules/regenerator-runtime
  • [email protected] node_modules/babel-preset-react-app/node_modules/babel-runtime
  • [email protected] node_modules/caniuse-db
  • [email protected] node_modules/case-sensitive-paths-webpack-plugin
  • [email protected] node_modules/clap
  • [email protected] node_modules/color-name
  • [email protected] node_modules/color-convert
  • [email protected] node_modules/color-string
  • [email protected] node_modules/color
  • [email protected] node_modules/colors
  • [email protected] node_modules/common-tags
  • [email protected] node_modules/create-react-class/node_modules/fbjs/node_modules/object-assign
  • [email protected] node_modules/create-react-class/node_modules/fbjs
  • [email protected] node_modules/create-react-class/node_modules/object-assign
  • [email protected] node_modules/create-react-class
  • [email protected] node_modules/css-color-names
  • [email protected] node_modules/colormin
  • [email protected] node_modules/css-loader/node_modules/loader-utils
  • [email protected] node_modules/css-selector-tokenizer/node_modules/regexpu-core
  • [email protected] node_modules/cssesc
  • [email protected] node_modules/csso
  • [email protected] node_modules/deep-equal
  • [email protected] node_modules/defined
  • [email protected] node_modules/doctrine
  • [email protected] node_modules/electron-to-chromium
  • [email protected] node_modules/browserslist
  • [email protected] node_modules/element-class
  • [email protected] node_modules/es5-shim
  • [email protected] node_modules/es6-shim
  • [email protected] node_modules/esprima
  • [email protected] node_modules/exenv
  • [email protected] node_modules/fastparse
  • [email protected] node_modules/css-selector-tokenizer
  • [email protected] node_modules/file-loader
  • [email protected] node_modules/flatten
  • fuse.[email protected] node_modules/fuse.js
  • [email protected] node_modules/fuzzysearch
  • [email protected] node_modules/html-comment-regex
  • [email protected] node_modules/html-entities
  • [email protected] node_modules/icss-replace-symbols
  • [email protected] node_modules/immutable
  • [email protected] node_modules/indexes-of
  • [email protected] node_modules/is-absolute-url
  • [email protected] node_modules/is-dom
  • [email protected] node_modules/is-obj
  • [email protected] node_modules/dot-prop
  • [email protected] node_modules/configstore
  • [email protected] node_modules/is-svg
  • [email protected] node_modules/js-base64
  • [email protected] node_modules/js-yaml
  • lodash.[email protected] node_modules/lodash.camelcase
  • lodash.[email protected] node_modules/lodash.memoize
  • lodash.[email protected] node_modules/lodash.sortby
  • lodash.[email protected] node_modules/lodash.uniq
  • [email protected] node_modules/caniuse-api
  • [email protected] node_modules/macaddress
  • [email protected] node_modules/mantra-core/node_modules/core-js
  • [email protected] node_modules/mantra-core/node_modules/babel-runtime
  • [email protected] node_modules/math-expression-evaluator
  • [email protected] node_modules/mobx
  • [email protected] node_modules/node-dir
  • [email protected] node_modules/normalize-range
  • [email protected] node_modules/num2fraction
  • [email protected] node_modules/object.getownpropertydescriptors/node_modules/es-abstract
  • object.[email protected] node_modules/object.getownpropertydescriptors
  • [email protected] node_modules/path-parse
  • [email protected] node_modules/podda
  • [email protected] node_modules/postcss-message-helpers
  • [email protected] node_modules/postcss-modules-local-by-default/node_modules/regexpu-core
  • [email protected] node_modules/postcss-modules-local-by-default/node_modules/css-selector-tokenizer
  • [email protected] node_modules/postcss-modules-scope/node_modules/regexpu-core
  • [email protected] node_modules/postcss-modules-scope/node_modules/css-selector-tokenizer
  • [email protected] node_modules/postcss-value-parser
  • [email protected] node_modules/postcss/node_modules/supports-color
  • [email protected] node_modules/postcss
  • [email protected] node_modules/postcss-colormin
  • [email protected] node_modules/postcss-convert-values
  • [email protected] node_modules/postcss-discard-comments
  • [email protected] node_modules/postcss-discard-duplicates
  • [email protected] node_modules/postcss-discard-empty
  • [email protected] node_modules/postcss-discard-overridden
  • [email protected] node_modules/postcss-merge-idents
  • [email protected] node_modules/postcss-merge-longhand
  • [email protected] node_modules/postcss-minify-font-values
  • [email protected] node_modules/postcss-minify-gradients
  • [email protected] node_modules/postcss-modules-extract-imports
  • [email protected] node_modules/postcss-modules-local-by-default
  • [email protected] node_modules/postcss-modules-scope
  • [email protected] node_modules/postcss-modules-values
  • [email protected] node_modules/postcss-normalize-charset
  • [email protected] node_modules/postcss-ordered-values
  • [email protected] node_modules/postcss-reduce-idents
  • [email protected] node_modules/postcss-reduce-initial
  • [email protected] node_modules/postcss-reduce-transforms
  • [email protected] node_modules/q
  • [email protected] node_modules/coa
  • [email protected] node_modules/react-docgen/node_modules/babylon
  • [email protected] node_modules/react-fuzzy
  • [email protected] node_modules/react-inspector
  • lodash.[email protected] node_modules/react-modal/node_modules/lodash.assign
  • [email protected] node_modules/react-modal
  • [email protected] node_modules/react-simple-di/node_modules/core-js
  • [email protected] node_modules/react-simple-di/node_modules/babel-runtime
  • [email protected] node_modules/react-simple-di
  • [email protected] node_modules/react-stubber
  • [email protected] node_modules/recast
  • [email protected] node_modules/react-docgen
  • [email protected] node_modules/reduce-function-call
  • [email protected] node_modules/reduce-css-calc
  • [email protected] node_modules/postcss-calc
  • [email protected] node_modules/require-from-string
  • [email protected] node_modules/cosmiconfig
  • [email protected] node_modules/postcss-load-options
  • [email protected] node_modules/postcss-load-plugins
  • [email protected] node_modules/postcss-load-config
  • [email protected] node_modules/postcss-loader
  • [email protected] node_modules/resolve
  • [email protected] node_modules/rechoir
  • [email protected] node_modules/sax
  • [email protected] node_modules/serve-favicon/node_modules/etag
  • [email protected] node_modules/serve-favicon/node_modules/fresh
  • [email protected] node_modules/serve-favicon/node_modules/ms
  • [email protected] node_modules/serve-favicon
  • [email protected] node_modules/shallowequal
  • [email protected] node_modules/mantra-core/node_modules/react-komposer
  • [email protected] node_modules/mantra-core
  • [email protected] node_modules/react-komposer
  • [email protected] node_modules/shelljs
  • [email protected] node_modules/sort-keys
  • [email protected] node_modules/normalize-url
  • [email protected] node_modules/postcss-normalize-url
  • [email protected] node_modules/sprintf-js
  • [email protected] node_modules/string.prototype.padend/node_modules/es-abstract
  • string.prototype.[email protected] node_modules/string.prototype.padend
  • [email protected] node_modules/string.prototype.padstart/node_modules/es-abstract
  • string.prototype.[email protected] node_modules/string.prototype.padstart
  • [email protected] node_modules/style-loader
  • [email protected] node_modules/svgo/node_modules/esprima
  • [email protected] node_modules/svgo/node_modules/js-yaml
  • [email protected] node_modules/uniq
  • [email protected] node_modules/postcss-selector-parser
  • [email protected] node_modules/postcss-minify-selectors
  • [email protected] node_modules/uniqid
  • [email protected] node_modules/postcss-filter-plugins
  • [email protected] node_modules/uniqs
  • [email protected] node_modules/postcss-discard-unused
  • [email protected] node_modules/postcss-minify-params
  • [email protected] node_modules/postcss-unique-selectors
  • [email protected] node_modules/postcss-zindex
  • [email protected] node_modules/url-loader/node_modules/loader-utils
  • [email protected] node_modules/url-loader
  • [email protected] node_modules/vendors
  • [email protected] node_modules/postcss-merge-rules
  • [email protected] node_modules/webpack-dev-middleware
  • [email protected] node_modules/webpack-dev-middleware/node_modules/acorn
  • [email protected] node_modules/webpack-dev-middleware/node_modules/async
  • [email protected] node_modules/webpack-dev-middleware/node_modules/camelcase
  • [email protected] node_modules/webpack-dev-middleware/node_modules/cliui
  • [email protected] node_modules/webpack-dev-middleware/node_modules/crypto-browserify
  • [email protected] node_modules/webpack-dev-middleware/node_modules/enhanced-resolve/node_modules/memory-fs
  • [email protected] node_modules/webpack-dev-middleware/node_modules/interpret
  • [email protected] node_modules/webpack-dev-middleware/node_modules/node-libs-browser
  • [email protected] node_modules/webpack-dev-middleware/node_modules/tapable
  • [email protected] node_modules/webpack-dev-middleware/node_modules/enhanced-resolve
  • [email protected] node_modules/webpack-dev-middleware/node_modules/uglify-js/node_modules/async
  • [email protected] node_modules/webpack-dev-middleware/node_modules/watchpack/node_modules/async
  • [email protected] node_modules/webpack-dev-middleware/node_modules/watchpack
  • [email protected] node_modules/webpack-dev-middleware/node_modules/webpack/node_modules/memory-fs
  • [email protected] node_modules/webpack-dev-middleware/node_modules/yargs
  • [email protected] node_modules/webpack-dev-middleware/node_modules/uglify-js
  • [email protected] node_modules/webpack-hot-middleware
  • whet.[email protected] node_modules/whet.extend
  • [email protected] node_modules/svgo
  • [email protected] node_modules/postcss-svgo
  • [email protected] node_modules/cssnano
  • [email protected] node_modules/css-loader
    @kadira/[email protected] node_modules/@kadira/react-split-pane -> node_modules/@kadira/react-split-pane
    @kadira/[email protected] node_modules/@kadira/storybook -> node_modules/@kadira/storybook
    @kadira/[email protected] node_modules/@kadira/storybook-addon-actions -> node_modules/@kadira/storybook-addon-actions
    @kadira/[email protected] node_modules/@kadira/storybook-addon-links -> node_modules/@kadira/storybook-addon-links
    @kadira/[email protected] node_modules/@kadira/storybook-addons -> node_modules/@kadira/storybook-addons
    @kadira/[email protected] node_modules/@kadira/storybook-channel -> node_modules/@kadira/storybook-channel
    @kadira/[email protected] node_modules/@kadira/storybook-channel-postmsg -> node_modules/@kadira/storybook-channel-postmsg
    @kadira/[email protected] node_modules/@kadira/storybook-ui -> node_modules/@kadira/storybook-ui
    [email protected] node_modules/airbnb-js-shims -> node_modules/airbnb-js-shims
    [email protected] node_modules/alphanum-sort -> node_modules/alphanum-sort
    [email protected] node_modules/ansi-html -> node_modules/ansi-html
    [email protected] node_modules/argparse -> node_modules/argparse
    [email protected] node_modules/array-includes -> node_modules/array-includes
    [email protected] node_modules/ast-types -> node_modules/ast-types
    [email protected] node_modules/autoprefixer -> node_modules/autoprefixer
    [email protected] node_modules/babel-plugin-react-docgen -> node_modules/babel-plugin-react-docgen
    [email protected] node_modules/babel-plugin-transform-object-rest-spread -> node_modules/babel-plugin-transform-object-rest-spread
    [email protected] node_modules/babel-plugin-transform-react-constant-elements -> node_modules/babel-plugin-transform-react-constant-elements
    [email protected] node_modules/babel-plugin-transform-runtime -> node_modules/babel-plugin-transform-runtime
    [email protected] node_modules/babel-preset-env -> node_modules/babel-preset-env
    [email protected] node_modules/babel-preset-es2016 -> node_modules/babel-preset-es2016
    [email protected] node_modules/babel-preset-es2017 -> node_modules/babel-preset-es2017
    [email protected] node_modules/babel-preset-latest -> node_modules/babel-preset-latest
    [email protected] node_modules/babel-preset-react-app -> node_modules/babel-preset-react-app
  • [email protected] node_modules/webpack-dev-middleware/node_modules/webpack
    npm WARN @kadira/[email protected] requires a peer of @kadira/storybook-addons@^1.3.0 but none was installed.
    npm WARN @kadira/[email protected] requires a peer of @kadira/storybook-addons@^1.3.0 but none was installed.
    npm WARN [email protected] requires a peer of file-loader@* but none was installed.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @kadira/[email protected] (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/[email protected] (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/[email protected] (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/[email protected] (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/[email protected] (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/[email protected] (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/[email protected] (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/[email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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'`
needs reproduction question / support

Most helpful comment

  • delete your stories
  • delete the .storybook folder
  • delete the scripts added to package.json
  • delete all storybook related dependencies from package.json
  • run yarn or npm to update the lockfile

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.

All 5 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 ?
what is the command to uninstall storybook.
npm uninstall -g @storybook/cli isn't seem to work as expected.

  • delete your stories
  • delete the .storybook folder
  • delete the scripts added to package.json
  • delete all storybook related dependencies from package.json
  • run yarn or npm to update the lockfile

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.

  1. delete your stories
  1. delete the .storybook folder

  2. delete scripts and dependencies from package.json (usually, delete every single line which contains 'storybook')

  3. run npm install (*this is important. Don't run npm update as npm update updates every single dependencies that might break the dependency graph of the project and cause error when you run project)

Was this page helpful?
0 / 5 - 0 ratings