【发布时间】:2018-07-03 05:37:24
【问题描述】:
我在运行 storybook.... 时遇到错误,即使是在全新安装中。
npm run storybook
> @ storybook /media/programmersedge/New_Volume/devs/demostorybook
> start-storybook -p 9001 -c .storybook
sh: 1: start-storybook: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @ storybook: `start-storybook -p 9001 -c .storybook`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @ storybook script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
我正在使用最新的 storybook 版本。 我的 node 版本是 6.11.1 而 npm 版本是 5.5.1
我也尝试使用 yarn 安装故事书,但我遇到了同样的问题 纱线版本1.3.2
【问题讨论】:
-
请检查您的 pakage.json 文件并更新您的脚本运行命令。希望它对你有用。
标签: reactjs npm yarnpkg storybook