Thank you for your continuous support.
If anyone knows about the following questions, please let me know.
How do I upgrade the version of the firebase command to publish a website on Firebase?
[The main idea of the question] I will give you 5 additional explanations.
The environment versions involved in this question are as follows:
$node-v
v8.11.3
$ npm-v
6.9.0
$ firebase-V
4.0.2
$ anyenv version
ndenv —v8.11.3 (set by / Users / MYUSERNAME /.anyenv / envs / ndenv / version )
rbenv —system(set by /Users/MYUSERNAME/.anyenv/envs/rbenv/version)
When I ran $firebase deploy
in the above environment, I was told to set the firebase version to 4.1.0 or higher.
$firebase deploy
=== Deploying to 'jissen-pwa'...
deploying hosting
i hosting —preparing public directory for upload...
Error: HTTP Error:410, This version of the Firebase CLI is no longer possible to deploy to Firebase Hosting. Please upgrade to a newer version (>=4.1.0). If you have further questions, please reach out to Firebase support.
Fukuiyou-no-MBP: jissen-pwa-project MYUSERNAME$firebase-V
4.0.2
It's been a long time since I logged in to firebase, so I re-logged in to firebase before running $firebase deploy
.
$ firebase login --reauth
┌──────────────────────────────────────────────┐
│ Update available: 6.6.0 (current: 4.0.2) │
│ Runnpm install-g firebase-tools to update.│
└──────────────────────────────────────────────┘
? Allow Firebase to collect anonymous CLI usage and error reporting information?
Yes
I ran $sudonpm install-g firebase-tools
because $firebase login --reauth
showed the command to upgrade the version.
However, when I ran it, an error image similar to the one above was displayed.When I checked the firebase version, it remained 4.0.2 as before.
The string below is a partial quote from the error statement.
npm WARN tar EISDIR: illegal operation on a directory, open'/Users/MYUSERNAME/.anyenv/envs/ndenv/versions/v8.11.3/lib/node_modules/.staging/firebase-tools-f6fc0e7d/lib test/hels
npm WARN tar EISDIR: illegal operation on a directory, open'/Users/MYUSERNAME/.anyenv/envs/env/ndenv/versions/v8.11.3/lib/node_modules/.staging/firebase-tools-f6fc0e7d/lib/test/hosting'
npm WARN tar EISDIR: illegal operation on a directory, open'/Users/MYUSERNAME/.anyenv/envs/env/ndenv/versions/v8.11.3/lib/node_modules/.staging/firebase-tools-f6fc0e7d/lib/test/fire'
The error wording includes Users/MYUSERNAME/.anyenv/envs/ndenv/versions/v8.11.3...
, which is likely to be the effect of installing anyenv or firebase-tools.The installation is summarized in a personal blog.
Thank you for your confirmation.
node.js firebase npm
npm install-g firebase-tools
Wouldn't it work if I ran (not sudo)?
Perhaps when installing and updating around ndenv in anyenv, I used sudo and it seems that the permissions are strange.
If you were yourself, for example,
sudo chown-R username:group name~/.anyenv
~/.anyenv
I think I will modify the following permissions.
© 2024 OneMinuteCode. All rights reserved.