https://i.stack.imgur.com/Bnc9Z.jpg
My storybook runs fine on Windows 10 while pushing to server
sh: 1: start-storybook: Permission denied
root_app_0486GCHS-Design-L-801:/datadrive/FE/census-design-system$ sudo npm run Storybook
Democracy book. 1.7 Storybook
Start Storybook-p 6696
Node: internal/modules/cjs/loader:1631
Throw an error;
Error: Module *../dist/cis/server not found!
Requires stack:
- /datadr ive/FE/censa-des1gn-systen/node_nodules/@storybook/react/bin/index.html 15
in the function. module. _resolveFilename(node:internal/modules/cjs/loader:1628:15)
in functions.module. Load(node:internal /modules/cfs/ loader:873:27)
in module. requires(node:internal/modules/cjs/Loader:1100:19)
when needed (node:internal/nodule/cis/helpers:168:13)
in object. canononymous> (/datadrive/FE/censa-des1gn-systen/node module, @storybook/react/bin/index.Js:3:1)
in module. compile(node:internal/modules/cs/loader:1198:14)
in object. module. Extension. Js(node:internal/modules;/cjs/10ader1252:10)
in module. load(name: internal/nodule,/cis/loader1076:32)
in the function module. Load(node:internal/modules/cls/loader:911:12)
in the function. executeUserEntryPoint [as runkain] (node: internal /modules, /run marr
Code: "Module NOT_FOUNDY ,
Stack required: (
- 1datadrive/FE/censa-des gn-systen/node_modules Storybook React /bin/index.html JS
First delete your node_modules folder or rename it. Then install node_modules again by running
npm install
. It should now work fine.