Start Storybook: Permission Denied
P粉614840363
P粉614840363 2023-09-13 11:47:06
0
1
644

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

P粉614840363
P粉614840363

reply all(1)
P粉163951336

First delete your node_modules folder or rename it. Then install node_modules again by running npm install. It should now work fine.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template