You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
β π Empty directory detected ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Would you like to generate a new project from the following list? β
β β
β Note: β
β Storybook supports many more frameworks and bundlers than listed below. If you don't see β
β your β
β preferred setup, you can still generate a project then rerun this command to add Storybook. β
β β
β Press ^C at any time to quit. β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Choose a project template Β» Next.js (TS)
Creating a new "Next.js (TS)" project with pnpm...
SB_CLI_INIT_0003 (GenerateNewProjectOnInitError): There was an error while using pnpm to create a new nextjs-ts project.
Command failed with exit code 1: pnpm create next-app^14 . --typescript --use-pnpm --eslint --tailwind --no-app --import-alias="@/*" --src-dir
C:\Users\{masked}\AppData\Local\pnpm-cache\dlx\rkqwh2evvza7eolfvjaqkj7snq\194740212af-d100:
βERR_PNPM_FETCH_404β GET https://registry.npmjs.org/create-next-app14: Not Found - 404
This error happened while installing a direct dependency of C:\Users\{masked}\AppData\Local\pnpm-cache\dlx\rkqwh2evvza7eolfvjaqkj7snq\194740212af-d100
create-next-app14 is not in the npm registry, or you have no permission to fetch it.
An authorization header was used: Bearer npm_[hidden]
More info:
at scaffoldNewProject (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\create-storybook\dist\bin\index.cjs:84:1241)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async doInitiate (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\create-storybook\dist\bin\index.cjs:96:237)
at async withTelemetry (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\@storybook\core\dist\core-server\index.cjs:35750:12)
at async initiate (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\create-storybook\dist\bin\index.cjs:127:214) {
data: {
error: Error: Command failed with exit code 1: pnpm create next-app^14 . --typescript --use-pnpm --eslint --tailwind --no-app --import-alias="@/*" --src-dir
C:\Users\{masked}\AppData\Local\pnpm-cache\dlx\rkqwh2evvza7eolfvjaqkj7snq\194740212af-d100:
βERR_PNPM_FETCH_404β GET https://registry.npmjs.org/create-next-app14: Not Found - 404
This error happened while installing a direct dependency of C:\Users\{masked}\AppData\Local\pnpm-cache\dlx\rkqwh2evvza7eolfvjaqkj7snq\194740212af-d100
create-next-app14 is not in the npm registry, or you have no permission to fetch it.
An authorization header was used: Bearer npm_[hidden]
at makeError (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\execa\lib\error.js:60:11)
at handlePromise (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\execa\index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async scaffoldNewProject (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\create-storybook\dist\bin\index.cjs:84:1128)
at async doInitiate (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\create-storybook\dist\bin\index.cjs:96:237)
at async withTelemetry (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\@storybook\core\dist\core-server\index.cjs:35750:12)
at async initiate (C:\Users\{masked}\AppData\Local\npm-cache\_npx\f0725cbdc52d7264\node_modules\create-storybook\dist\bin\index.cjs:127:214) {
shortMessage: 'Command failed with exit code 1: pnpm create next-app^14 . --typescript --use-pnpm --eslint --tailwind --no-app --import-alias="@/*" --src-dir',
command: 'pnpm create next-app^14 . --typescript --use-pnpm --eslint --tailwind --no-app --import-alias="@/*" --src-dir',
escapedCommand: 'pnpm create "next-app^14" . --typescript --use-pnpm --eslint --tailwind --no-app "--import-alias=\\"@/*\\"" --src-dir',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'C:\\Users\\hokin\\AppData\\Local\\pnpm-cache\\dlx\\rkqwh2evvza7eolfvjaqkj7snq\\194740212af-d100:\r\n' +
'βERR_PNPM_FETCH_404β GET https://registry.npmjs.org/create-next-app14: Not Found - 404\n' +
'\n' +
'This error happened while installing a direct dependency of C:\\Users\\hokin\\AppData\\Local\\pnpm-cache\\dlx\\rkqwh2evvza7eolfvjaqkj7snq\\194740212af-d100\n' +
'\n' +
'create-next-app14 is not in the npm registry, or you have no permission to fetch it.\n' +
'\n' +
'An authorization header was used: Bearer npm_[hidden]',
stderr: '',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
},
packageManager: 'pnpm',
projectType: 'nextjs-ts'
},
fromStorybook: true,
category: 'CLI_INIT',
documentation: '',
code: 3
}
I tried to run the failed command pnpm create next-app^14 . --typescript --use-pnpm --eslint --tailwind --no-app --import-alias="@/*" --src-dir independently. Yes, it failed. However when I remove the ^14 it WORKS.
Describe the bug
Failed to initial Next.JS template.
Reproduction link
n/a
Reproduction steps
pnpm dlx storybook init
Next.js (TS)
as tamplateSystem
Additional context
I tried to run the failed command
pnpm create next-app^14 . --typescript --use-pnpm --eslint --tailwind --no-app --import-alias="@/*" --src-dir
independently. Yes, it failed. However when I remove the^14
it WORKS.Related code,
storybook/code/lib/create-storybook/src/scaffold-new-project.ts
Lines 49 to 52 in 6c2a260
The text was updated successfully, but these errors were encountered: