storybook: getstorybook shouldn't use yarn if there's no `yarn.lock`
Bug(?)
Using latest @storybook/cli running getstorybook installs alpha version of storybook versus latest stable version.
Steps to reproduce
npm i -g @storybook/cli
getstorybook
The installed version of Storybook dependencies are alpha versions. Considering the versions are alpha, it seems unexpected that the most recent version of getstorybook would install them rather than the latest stable release.
Affected platforms
I’m on OSX (10.13.3)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (7 by maintainers)
Can I give this a try? If @danawoodman doesn’t mind of course.
Ok, thanks for the info. This is super unexpected and I would categorize this as a bug since it breaks any application where a developer does not use that flag. I expect that installing with
npmand running it withnpmthat it would usenpm. Maybe there is a way for storybook to do this more intelligently? Eg check if there is ayarn.lockinstead of just a system availableyarn?In addition, and I’m not sure if it is related, by I am getting the following error when installing Storybook (using
getstorybook -f) and runningnpm run storybook: