Skip to content
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

npx -p @storybook/cli sb init failed #9539

Closed
codenoobforreal opened this issue Jan 19, 2020 · 3 comments
Closed

npx -p @storybook/cli sb init failed #9539

codenoobforreal opened this issue Jan 19, 2020 · 3 comments

Comments

@codenoobforreal
Copy link

codenoobforreal commented Jan 19, 2020

I was following "Setup React Storybook" part of "Storybook for React tutorial"

"npx create-react-app taskbox" is fine,
I create my app successfully and use "cd taskbox" go into the project folder
finally, run 'npx -p @storybook/cli sb init' and it failed

error log below

0 info it worked if it ends with ok
1 verbose cli [ 'G:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'G:\\Program Files\\nodejs\\npm_global_modules\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   '@storybook/cli@latest',
1 verbose cli   '--global',
1 verbose cli   '--prefix',
1 verbose cli   'G:\\Program',
1 verbose cli   'File\\nodejs\\nodeCache\\_npx\\8000',
1 verbose cli   '--loglevel',
1 verbose cli   'error',
1 verbose cli   '--json' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 984f11d552d3a58a
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for file:File\nodejs\nodeCache\_npx\8000 Could not install from "File\nodejs\nodeCache\_npx\8000" as it does not contain a package.json file.
8 http fetch GET 304 http://registry.npmjs.org/@storybook%2fcli 813ms (from cache)
9 silly pacote tag manifest for @storybook/cli@latest fetched in 844ms
10 timing stage:rollbackFailedOptional Completed in 1ms
11 timing stage:runTopLevelLifecycles Completed in 854ms
12 verbose stack Error: ENOENT: no such file or directory, open 'G:\project\workplace\taskbox\File\nodejs\nodeCache\_npx\8000\package.json'
13 verbose cwd G:\project\workplace\taskbox
14 verbose Windows_NT 10.0.17763
15 verbose argv "G:\\Program Files\\nodejs\\node.exe" "G:\\Program Files\\nodejs\\npm_global_modules\\node_modules\\npm\\bin\\npm-cli.js" "install" "@storybook/cli@latest" "--global" "--prefix" "G:\\Program" "File\\nodejs\\nodeCache\\_npx\\8000" "--loglevel" "error" "--json"
16 verbose node v10.13.0
17 verbose npm  v6.13.6
18 error code ENOLOCAL
19 error Could not install from "File\nodejs\nodeCache\_npx\8000" as it does not contain a package.json file.
20 verbose exit [ 1, true ]

image

it seems like the "file" doesn't exist and I confused by "File\nodejs\nodeCache_npx\8224" also "G:\project\workplace\taskbox\File\nodejs\nodeCache_npx\8000\package.json".
image

@codenoobforreal
Copy link
Author

feel sorry about this bigger text...i didn't notice until now.

@stale
Copy link

stale bot commented Feb 10, 2020

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Feb 10, 2020
@stale
Copy link

stale bot commented Mar 11, 2020

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants