steadyequipment / node-firestore-backup

Google Firebase Firestore backup tool
190 stars 51 forks source link

Rename issue #21

Closed Tulleb closed 6 years ago

Tulleb commented 6 years ago

I have the following issue when trying to install sudo npm install -g firestore-backup.

$ sudo npm install -g firestore-backup npm ERR! path /usr/local/lib/node_modules/firestore-backup/node_modules/grpc/node_modules/node-pre-gyp/node_modules/nopt npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/firestore-backup/node_modules/grpc/node_modules/node-pre-gyp/node_modules/nopt' -> '/usr/local/lib/node_modules/firestore-backup/node_modules/grpc/node_modules/node-pre-gyp/node_modules/.nopt.DELETE' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /home/tulleb/.npm/_logs/2018-03-05T13_29_14_752Z-debug.log

My current npm version is:

$ npm -v 5.6.0

Thanks for your work!

jeremylorino commented 6 years ago

Could you upgrade your Node.js to latest LTS v8.9.x and try again please?

Tulleb commented 6 years ago

Same thing (as root this time):

root@Tulleb05:~# npm install -g firestore-backup npm ERR! path /usr/local/lib/node_modules/firestore-backup/node_modules/grpc/node_modules/node-pre-gyp/node_modules/nopt npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/firestore-backup/node_modules/grpc/node_modules/node-pre-gyp/node_modules/nopt' -> '/usr/local/lib/node_modules/firestore-backup/node_modules/grpc/node_modules/node-pre-gyp/node_modules/.nopt.DELETE' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-03-07T09_34_05_054Z-debug.log


root@Tulleb05:~# node -v v8.9.4


root@Tulleb05:~# npm -v 5.6.0

jeremylorino commented 6 years ago

Let me spin up a fresh environment on cloud9 to test because "it works on my machine".

What's your environment stack?

Tulleb commented 6 years ago

Ubuntu 16.04.3 LTS

I am not using anything else like docker... I don't know much about it 😕

jeremylorino commented 6 years ago

No worries ;)

I just wanted to make sure I had a fresh environment to try and reproduce your issue.

jeremylorino commented 6 years ago

@Tulleb real quick; if you run

npx firestore-backup

does it work?

jeremylorino commented 6 years ago

@Tulleb here is the c9 workspace i just cloned to let us test

Tulleb commented 6 years ago

@jeremylorino as soon as I found out to create an account over there... Worst website ever 😳

jeremylorino commented 6 years ago

yaaaa sorry. you should be able to login with github

Tulleb commented 6 years ago

Can't, I tried already :/ I'll looking into it. Thanks for the help once again @jeremylorino.

Tulleb commented 6 years ago

It's actually working with 'npx' prefix 😍

Maybe the installation succeed after all? I don't know the npx command.

jeremylorino commented 6 years ago

it's a nice little command

medium article npx git repo

yoiang commented 6 years ago

It sounds like this is resolved so I'm closing it. Please say if it hasn't been!