`sb migrate` doesn't work with npx
See original GitHub issue$ npx -p @storybook/cli@5.2.0-beta.17 sb migrate storiesof-to-csf --glob "components/**/*.examples.js"
[BABEL] Note: The code generator has deoptimised the styling of /Users/jetbrains/.npm/_npx/50842/lib/node_modules/@storybook/cli/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
=> Applying storiesof-to-csf: 117 files
yarn run v1.17.3
error Command "jscodeshift" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ npx -v
6.9.0
$ node -v
v10.16.0
$ npm -v
6.9.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:21 (9 by maintainers)
Top Results From Across the Web
@storybook/codemod - npm
The preferred way to run these codemods is via the CLI's migrate command. To get a list of available codemods: npx sb migrate...
Read more >Install Storybook
Run this inside your existing project's root directory: # Add Storybook: npx storybook init. Copy. If you run into issues with the installation,...
Read more >React Storybook throws error when using npx sb init
I'm using Ubuntu 20.04. I had the same issue. The problem was that I had installed node through snap.
Read more >How I upgraded Storybook from 5.3.2 to 6.1.x - Samundra
Then run npm run storybook to check if this worked fine or not. ... got to another Github issue that hints to use...
Read more >@storybook/builder-vite - NPM Package Overview - Socket
To automatically migrate your existing project, you can run. npx sb@next automigrate. To manually migrate: Remove storybook-builder-vite ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My workaround was to run the command on a parent level instead of project directory. Looks like it interfered with my local packages in some way
Had to strip out the typescript but worked ok (globally install
sb
andreact
however)