Cannot use a local npm package with npm link #2876
Comments
Tried to create a symlink to my npm package in .npm/package/node_modules but didn't work either. |
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 :) |
@glasser can you elaborate on the https url with a sha in it? Specifically, for pulling it from github? The Npm.depends needs to include a from field? |
Disregard, I'm just using --tag in my npm publish to not list it or tag it as latest |
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. Related: https://forums.meteor.com/t/npm-depends-on-a-local-npm-package/9177/2 |
I don't know why |
@mizzao |
@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. |
Thanks to @worldsayshi for reporting this issue with a reproduction. Fixes #8005. Fixes #2876. Fixes #7154.
Hey,
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.
Ronen
The text was updated successfully, but these errors were encountered: