Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot npm install v3.0.0-alpha.0 from github #1055

Closed
delijah opened this issue May 18, 2017 · 3 comments
Closed

Cannot npm install v3.0.0-alpha.0 from github #1055

delijah opened this issue May 18, 2017 · 3 comments

Comments

@delijah
Copy link

delijah commented May 18, 2017

When i type the following into my console...

npm install https://github.com/storybooks/storybook.git#v3.0.0-alpha.0

...i get the following error...

npm ERR! addLocal Could not install /var/folders/lk/9kgdct616xd3nv8w93dfbj1c0000gn/T/npm-35127-e969619c/git-cache-7ba39d26/bf7db99e6d5843ad3c787d42c58ba22e23cb1b06
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "https://github.com/storybooks/storybook.git#v3.0.0-alpha.0"
npm ERR! node v7.6.0
npm ERR! npm  v4.2.0

npm ERR! No version provided in package.json
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/delijah/.npm/_logs/2017-05-18T09_02_35_376Z-debug.log
@shilman
Copy link
Member

shilman commented May 18, 2017

@ndelangen @aaronmcadam will Lerna support installing from a git URL?

@delijah Does installing from npm work? E.g. https://github.com/storybooks/storybook#getting-started

@ndelangen
Copy link
Member

ndelangen commented May 18, 2017

By running that command you will install the root package, which we do not publish and is meaningless. This is a consequence of a mono repo. It's impossible to install a sub-package (which is what you actually want to do).

NPM has clearly communicated they will not work on adding this feature npm/npm#2974.

Installing this git repo will not help you in any way. You need to install from npm.

run:

npm view @storybook/react` # to view all releases pushed to npm, and take your pick.

or just install last alpha release like so:

npm i @storybook/react@alpha

@ndelangen ndelangen changed the title Cannot npm install v3.0.0-alpha.0 Cannot npm install v3.0.0-alpha.0 from github May 18, 2017
@delijah
Copy link
Author

delijah commented May 18, 2017

Ok, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants