Как мне начать сборник рассказов? - PullRequest
2 голосов
/ 04 ноября 2019

Я следую учебному пособию здесь , чтобы настроить сборник рассказов

Он говорит мне выполнить следующие команды:

# Create our application:
npx create-react-app taskbox
cd taskbox

# Add Storybook:
npx -p @storybook/cli sb init

Однако после третьегокоманда дает мне

npm ERR! code ENOLOCAL
npm ERR! Could not install from "<last-name>\AppData\Roaming\npm-cache\_npx\8504" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\<name>\AppData\Roaming\npm- 
cache\_logs\2019-11-04T14_32_25_838Z-debug.log
Install for [ '@storybook/cli@latest' ] failed with code 1

Это похоже на проблему с кешем, поэтому я попытался очистить кеш и переустановить узел. Но это все еще не работает.

1 Ответ

2 голосов
/ 04 ноября 2019

вы не запустили npm init ...... нужен файл package.json

...