Npm dependecy version prefixes

Hi forum,

I just tried to do thing like this in my package.js :

Npm.depends({ 'some-package' : '^x.y.z' } )

And meteor throws me :must declare valid version of dependency
Same if i use ~ not ^ It seems that for some reason meteor accepts only exact dependency version.
Any idea whats going on here?


Yes, npm versions in atmosphere packages must be exact.
You can instead use tmeasday:check-npm-versions to force the parent app to have the required npm package installed instead, which allows modifiers like ~ or ^ and better deduplication

1 Like