#Storybook with Node.js 14

7 messages · Page 1 of 1 (latest)

lost cave
#

Hi, I'm using nodejs version 14 for a company project. For some reason I am unable to upgrade, I want to use storybook with nodejs version 14, but 14 is not supported in latest.

npx storybook@latest init

What is the command to init with a supported version of node.js?

wind mirage
lost cave
frosty steeple
#

No, it's a condition for using the tool at all. Storybook 7+ requires Node 16+.

I think for contributing to Storybook, we're just about to make the minimum Node 18.

lost cave
#

Understood.
So can I solve the problem of not being able to install on Node 14 by installing Storybook v6?
I tried it, but it didn't work...
It seems that @storybook/[email protected] will be installed no matter what.

frosty steeple
#

Yeah, unfortunately, our CLI tool doesn't provide a way to install a previous version. You have to install the latest and then follow the migration guide (https://storybook.js.org/docs/7.4/react/migration-guide) in reverse. ☹️

Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It’s open source and free.