-
Notifications
You must be signed in to change notification settings - Fork 3k
invalid name "@mozilla/raptor" when using npm link #8927
Comments
Yep, this seems like a legit bug. We may not have time to fix it soon (although it might already be fixed in |
This is a bug that was introduced with npm 3 and only occurs with scoped packages due to an extra level of directory traversal not being taken into account. I fixed and pointed out where it's occurring here - #8874. I believe it's already getting fixed but if not I'd clean up and send a pull request. |
@cchamberlain this issue is happening on npm v2.11.3; am I missing something with your statement? |
@eliperelman - you are correct, it was pretty late last night and im going to blame it on that. Based on that I'm not sure if this is related or not. The error in 3.x is that it can't read property 0 of undefined but I was linking scoped packages prior to npm 3 without issue. |
@eliperelman - assume you've used npm adduser and the account you are installing with has access to the scoped package if it's private? |
@cchamberlain lol no worries. For what it's worth, this issue doesn't manifest on OS X, only on Ubuntu. I'll see if I can get the system information. |
@cchamberlain shouldn't need credentials when only doing an |
@eliperelman - I think that the only time I've seen issues with that is if my package is referencing another private module so yeah probably unrelated. I'm not sure what might be causing on Ubuntu only, do you normally have to install global packages with sudo on your machine? |
Heh, I'm playing man in the middle. @rwood-moz, you want to follow up? |
Thanks Eli. |
If it helps, I was still seeing this on Ubuntu 12.04.4 LTS but not with 14.04.2 LTS even though it appeared as if I had npm version 3.7.3 and node v5.8.0 on both ubuntu systems. However, that turned out to be due to the old chris-lea PPA versions still lingering on the system. I was able to delete the PPA, delete the various old versions on the system, install the Linux binaries directly from the nodejs website and reinstall the package, and all looked good again. This is just FYI in case someone else finds this old thread ... |
I'm able to (tested using this package, fyi) |
@dasilvacontin correct, this issue only manifests itself on Ubuntu that we knew of. I haven't tested it out with updates to npm, so I may do that today and report back here. |
We're closing this issue as it has gone thirty days without activity. In our experience if an issue has gone thirty days without any activity then it's unlikely to be addressed. In the case of bug reports, often the underlying issue will be addressed but finding related issues is quite difficult and often incomplete. If this was a bug report and it is still relevant then we encourage you to open it again as a new issue. If this was a feature request then you should feel free to open it again, or even better open a PR. For more information about our new issue aging policies and why we've instituted them please see our blog post. |
Trying to
npm link
from a git repo which defines a scoped npm package. Error ensues:The package.json:
The text was updated successfully, but these errors were encountered: