-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm update firebase-admin fails with ENOENT: no such file or directory, rename #121
Comments
Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight. |
Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information. |
I faced the same issue. try to remove |
Issue Template: [READ] Step 1: Are you in the right place?
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problemI am attempting to install firebase-admin version 5.4.3 through NPM. Steps to reproduce:In a project using NPM packages, install firebase-admin version 5.4.2. Then run However, other people don't appear to be having the exact same symptoms, so it's possible you won't be able to reproduce it, which is why I posted my other installed NPM packages along with the full error message and relevant section of the log file above. Relevant Code:See initial post, above. |
What if you directly install the latest version of firebase-admin, instead of going the update route? Can't you just specify firebase-admin 5.4.3 as a dependency in your |
Yes, that works. This definitely appears to be a problem updating, not installing. Based on @thakkaryash94's and @hiranya911's comments, I unlocked my version of firebase-admin (changing it in package.json from "5.4.2" to "^5.4.2"), deleted my Apparently the problem last time was that my firebase-admin version had been locked to "5.4.2", so after I reinstalled everything else, I still had to to upgrade from version 5.4.2 to 5.4.3 as a separate action, which gave me the error again. So, at least for me, updating from a previous version causes the error, but a clean install does not. (Though this person appears to have gotten a very similar error while doing a regular install, so it might act differently on different systems.) So my personal problem is fixed. But I don't know whether you still need to change something to prevent this from happening again in future upgrades. (Having to delete node_modules and reinstall for every upgrade would get annoying, though I suppose I could live with it if I had to.) I'll let you decide if you think this issue should be closed immediately or warrants further investigation. Thanks for the help! Firebase rocks. Keep up the good work. :-) |
Thanks @dschnelldavis for the update. I was able to reproduce the issue with |
Actually, if your theory is correct, this may no longer be an issue. Assuming the change in The only people who will encounter this bug are people with version 5.4.2 or earlier who are upgrading to version 5.4.3 or later. And they can fix it by deleting their If that's the case, I'd say temporarily adding a note to your readme warning current users about the potential problem and its solution would be plenty. (Or, if you got rid of the npm-shrinkwrap files instead, then you wouldn't even need the readme note. That's up to you. As a user, I'd be perfectly satisfied with either solution.) |
Hi guys. Just to share my experience as I've been through the exact same error using npm v4.6.1 with I had to update npm to npm 5 (v5.5.1) to install the package. Cheers! |
Thanks all for the comments. We have removed the shrinkwrap file, and future releases will not ship with one. This should not cause issues in the future. |
OS X 10.12.x
The key for me was to completely delete node_modules directory from /usr/local/lib, and reinstall firebase-tools using the --unsafe-perm command line option. No other suggestion worked. Hope this helps. UPDATE 03/18/2016: I started using NVM (Node Version Manager) and it can simply be installed using the command: Using NVM installed node 6.x which I believe is still Google's preferred Node version though they do seem to be adding 8 support. Once NVM is installed simply: From there getting firebase initialized and working was as simple as following the documentation. Th 10.12 box I was using was old, and must have had a lot of cache trash on it to be a good example here. |
I got this error for adding firebase plugin npm ERR! code ENOLOCAL npm ERR! A complete log of this run can be found in: |
i soklved whit nvn
|
I think I have the same issue as posted here for NPM. However, I have not had this issue with any other packages, so I think the problem is firebase-admin version 5.4.3 (version 5.4.2 works fine), not NPM.
System info
Mac OS: 10.12.6
Node: 8.6.0
NPM: 5.5.1
firebase-admin: 5.4.2 -> 5.4.3
Installed NPM Packages:
Install Error
Running
npm update
gives this error:And here's the relevant part of the log file:
Fix
For now, I've locked my firebase-admin at version 5.4.2, which prevents the error, but also prevents upgrading.
Hopefully you can fix this in the next version.
Thanks!
The text was updated successfully, but these errors were encountered: