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 from github #414

Closed
danwad opened this issue Mar 9, 2016 · 2 comments
Closed

Cannot npm install from github #414

danwad opened this issue Mar 9, 2016 · 2 comments

Comments

@danwad
Copy link

danwad commented Mar 9, 2016

2.0.0-rc16 is the latest version on npm, but there are some changes I'd like from master.

From a bit of googling, I found that I can do this by installing from github with npm install --save dekujs/deku

However, .npmignore prevents src from being included when the package is installed so require('deku') fails.

Should the build directory lib be committed to the repo?

What is the recommended way of using bleeding edge deku?

@rstacruz
Copy link
Collaborator

What is the recommended way of using bleeding edge deku?

There isn't one, unfortunately. This is an issue for all npm repositories with its built code not committed to the repo, or not updated regularly.

Here are some workarounds:

  • Clone dekujs/deku first.
  • If you want to use it locally, just run npm link. Then in the repo you'd like to use it in, run npm link deku.
  • You can also publish it as @danwad/deku by changing package.json's name to that, and change the version as you like, then publish using npm publish --access public.

@danwad
Copy link
Author

danwad commented Mar 15, 2016

npm link works well - thanks :)

@danwad danwad closed this as completed Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants