question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx sb init doesn't work

See original GitHub issue

image

but sb is actually :

thing on git master [x!+?] via nodejs v16.6.1 took 2s 
x npx sb init --help      

sb version 0.12.20
Usage: sb [options] file ...
   or: sb [options] -{c|i} COMMAND
Send file(s) with ZMODEM/YMODEM/XMODEM protocol
    (X) = option applies to XMODEM only
    (Y) = option applies to YMODEM only
    (Z) = option applies to ZMODEM only
  -+, --append                append to existing destination file (Z)
  -2, --twostop               use 2 stop bits
  -4, --try-4k                go up to 4K blocksize
      --start-4k              start with 4K blocksize (doesn't try 8)
  -8, --try-8k                go up to 8K blocksize
      --start-8k              start with 8K blocksize
  -a, --ascii                 ASCII transfer (change CR/LF to LF)
  -b, --binary                binary transfer
  -B, --bufsize N             buffer N bytes (N==auto: buffer whole file)
  -c, --command COMMAND       execute remote command COMMAND (Z)
  -C, --command-tries N       try N times to execute a command (Z)
  -d, --dot-to-slash          change '.' to '/' in pathnames (Y/Z)
      --delay-startup N       sleep N seconds before doing anything
  -e, --escape                escape all control characters (Z)
  -E, --rename                force receiver to rename files it already has
  -f, --full-path             send full pathname (Y/Z)
  -i, --immediate-command CMD send remote CMD, return immediately (Z)
  -h, --help                  print this usage message
  -k, --1k                    send 1024 byte packets (X)
  -L, --packetlen N           limit subpacket length to N bytes (Z)
  -l, --framelen N            limit frame length to N bytes (l>=L) (Z)
  -m, --min-bps N             stop transmission if BPS below N
  -M, --min-bps-time N          for at least N seconds (default: 120)
  -n, --newer                 send file if source newer (Z)
  -N, --newer-or-longer       send file if source newer or longer (Z)
  -o, --16-bit-crc            use 16 bit CRC instead of 32 bit CRC (Z)
  -O, --disable-timeouts      disable timeout code, wait forever
  -p, --protect               protect existing destination file (Z)
  -r, --resume                resume interrupted file transfer (Z)
  -R, --restricted            restricted, more secure mode
  -q, --quiet                 quiet (no progress reports)
  -s, --stop-at {HH:MM|+N}    stop transmission at HH:MM or in N seconds
      --tcp                   build a TCP connection to transmit files
      --tcp-server            open socket, wait for connection
  -u, --unlink                unlink file after transmission
  -U, --unrestrict            turn off restricted mode (if allowed to)
  -v, --verbose               be verbose, provide debugging information
  -w, --windowsize N          Window is N bytes (Z)
  -X, --xmodem                use XMODEM protocol
  -y, --overwrite             overwrite existing files
  -Y, --overwrite-or-skip     overwrite existing files, else skip
      --ymodem                use YMODEM protocol
  -Z, --zmodem                use ZMODEM protocol

short options use the same arguments as the long ones

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
shilmancommented, Apr 11, 2022

Yeah, we also have the package storybook, so I think we’re going to switch to that instead:

npx storybook init

This will have the same problem, if somebody installs a binary called storybook in their path. But I think that’s a much lower possibility than sb, which looks like it’s a built-in utility in some linux distributions

1reaction
airtonixcommented, Apr 10, 2022

Why did you guys remove the steps to manually install storybook into a project.

so ways to fix this problem:

  • update the documentation in the screenshot above with something like : npx --package <storybook-package-that-provides-the-sb-command sb init
  • just outline the steps to manually setup storybook (preferred).
Read more comments on GitHub >

github_iconTop Results From Across the Web

npx sb init does not work with NPM v7 #12983 - GitHub
Create a new project, e.g. npx create-react-app my-app . Go to app directory cd my-app . Try to init Storybook npx sb init...
Read more >
Storybook for React tutorial, failing to install npx - Stack Overflow
When I run the npx -p @storybook/cli sb init command, it will fail to install and I receive this error. npm ERR! Unexpected...
Read more >
Install Storybook
Use the Storybook CLI to install it in a single command. Run this inside your existing project's root directory: # Add Storybook: npx...
Read more >
`npx sb init` does not work with NPM v7 #12983 - Issuehunt
`npx sb init` does not work with NPM v7 #12983 · Use Node v15 with NPM v7 nvm use 15 . · Create...
Read more >
@storybook/cli - npm
cd my-app npx sb init ... migrate - run codemods to migrate your code ... If you don't want to use yarn always...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found