I have written a private general purpose NPM package. Now I'm writing a meteor package because I need to access mongo collections for example. I also need to access my private NPM package.
So I created a blank meteor package:
meteor create my-package --package
and then added my NPM package:
// package.js
...
Npm.depends({
'@myorg/my-package': '1.0.0'
});
...
Whenever I try to add this package to my actual app, it gives me the following:
error: there is no npm package named '@myorg/my-package' in the npm registry
I already tried to put an .npmrc
file with a valid access-token into the package directory but it didn't seem to work.
Also, when I run npm whoami
, it shows my username so I'm actually logged in and can, theoretically speaking, access my package.
Does anyone have an idea how to fix this?
EDIT:
I now opened an issue for meteor: #10102