Open Venryx opened 6 years ago
Okay, running npm install in the cloned repo doesn't work either.
I get a different error this way, though:
C:\Root\Apps\@V\@Tools\node-firestore-backup-restore\Main>npm install
npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump
npm ERR! prepareGitDep 1>
npm ERR! prepareGitDep > grpc@1.13.1 install C:\Users\Stephen\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e8a39de6\node_modules\grpc
npm ERR! prepareGitDep > node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! prepareGitDep
npm ERR! prepareGitDep [grpc] Success: "C:\Users\Stephen\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e8a39de6\node_modules\grpc\src\node\extension_binary\node-v57-win32-x64-unknown\grpc_node.node" is installed via remote
npm ERR! prepareGitDep
npm ERR! prepareGitDep > protobufjs@6.8.8 postinstall C:\Users\Stephen\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e8a39de6\node_modules\protobufjs
npm ERR! prepareGitDep > node scripts/postinstall
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > @google-cloud/firestore@0.15.4 prepare C:\Users\Stephen\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e8a39de6
npm ERR! prepareGitDep > npm run compile
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > @google-cloud/firestore@0.15.4 compile C:\Users\Stephen\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e8a39de6
npm ERR! prepareGitDep > tsc -p . && cp -r protos build/protos && cp -r test/fake-certificate.json build/test/fake-certificate.json && cp src/v1beta1/firestore_client_config.json build/src/v1beta1/ && cp conformance/test-definition.proto build/conformance && cp conformance/test-suite.binproto build/conformance
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep 2> npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
npm ERR! prepareGitDep node-pre-gyp WARN Using request for node-pre-gyp https download
npm ERR! prepareGitDep 'cp' is not recognized as an internal or external command,
npm ERR! prepareGitDep operable program or batch file.
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! @google-cloud/firestore@0.15.4 compile: `tsc -p . && cp -r protos build/protos && cp -r test/fake-certificate.json build/test/fake-certificate.json && cp src/v1beta1/firestore_client_config.json build/src/v1beta1/ && cp conformance/test-definition.proto build/conformance && cp conformance/test-suite.binproto build/conformance`
npm ERR! prepareGitDep npm ERR! Exit status 1
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the @google-cloud/firestore@0.15.4 compile script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR! C:\Users\Stephen\AppData\Roaming\npm-cache\_logs\2018-07-27T06_21_45_804Z-debug.log
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! @google-cloud/firestore@0.15.4 prepare: `npm run compile`
npm ERR! prepareGitDep npm ERR! Exit status 1
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the @google-cloud/firestore@0.15.4 prepare script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR! C:\Users\Stephen\AppData\Roaming\npm-cache\_logs\2018-07-27T06_21_45_943Z-debug.log
npm ERR! prepareGitDep
npm ERR! code ENOPACKAGEJSON
npm ERR! package.json Non-registry package missing package.json: @google-cloud/firestore@github:googleapis/nodejs-firestore.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Stephen\AppData\Roaming\npm-cache\_logs\2018-07-27T06_21_46_209Z-debug.log
I noticed a yarn.lock file in the repo, so I tried running yarn global add firestore-backup-restore
.
That worked. I can now access the package globally. (well, after adding C\Users\Stephen\AppData\Local\Yarn\bin
to my PATH environment variable)
Perhaps it's worth including a warning about the npm install not working for now. (assuming others get the same issue -- it's possible it's specific to my machine or version of npm, I suppose)
When trying to install this package globally, I'm getting an error in npm.
The debug log file contents are here:
Node version: 8.11.2 NPM version: 5.10.0
Anyone know how to solve? (For now, I'll try cloning the repo and running
npm install
from there.)