Home > Software design >  'start-storybook' is not recognized as an internal or external command,
'start-storybook' is not recognized as an internal or external command,

Time:11-16

PS C:..project\src\features> npm run storybook

> sfe-template-20@0.1.0 storybook
> start-storybook -p 6006

'start-storybook' is not recognized as an internal or external command,
operable program or batch file.

Installed storybook but can't seem to make it run. I tried npm install, will not help.

npm: '8.1.0', node: '16.13.0' "react": "^17.0.1",

CodePudding user response:

Apparently the node version had to be downgraded to 14.15.0. After that I did rm -rf node_modules and then npm install. Since I am using Windows, before changing node version, I had to install NVM for Windows, then install the right node version and change it in CMD (have to run as Administrator).

  • Related