Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot use a local npm package with npm link #2876
My use case is as follows - I have an npm package that my meteor package depends on that I link globally using:
sudo npm link
Problem is that when I try to run my app, meteor complains that it cannot find the npm package in the npm registry:
spacejam version 1.1.0 is not available in the npm registry
This makes it hard to develop wrapper packages for npm packages, since I'll need to push my changes every time to the npm registry in order to use and test my meteor wrapper package.
Workarounds, for now, would be appreciated.
You're right, we don't support that.
We do not use GitHub to track feature requests (other than for Blaze). The core team's current roadmap is at https://roadmap.meteor.com/. Discussions about features that users desire are great topics for the meteor-talk mailing list, where the community can help come up with solutions that don't require core changes.
Workaround: put it on some http/https URL with a SHA in it, I guess :)
This was referenced
Dec 29, 2015
Hey guys --- is it possible yet to do development on an NPM package as part of a Meteor app, like we do Meteor packages, using something like
Currently, if a NPM package has a bug (when used as part of a Meteor app) that we'd like to fix and submit a PR on, it's very difficult to set up a development version.
@mizzao fyi, i faced a similar situation today. After being puzzled for a while, I realised that the package's entry point was babel transpiled code. So, changing the package's (ES6) source alone will not make any difference. Run the package's "build script" ...then Meteor will pick up the changes. Hope this helps.