verdaccio / verdaccio-google-cloud Goto Github PK
View Code? Open in Web Editor NEWโ๏ธ๐ฆ Google Cloud storage plugin for verdaccio
License: MIT License
โ๏ธ๐ฆ Google Cloud storage plugin for verdaccio
License: MIT License
I'm not sure what are the changes between 2.x
and 4.x
. But I think we should update this.
โ yarn upgrade-interactive --latest
yarn upgrade-interactive v1.16.0
info Color legend :
"<red>" : Major Update backward-incompatible updates
"<yellow>" : Minor Update backward-compatible features
"<green>" : Patch Update backward-compatible bug fixes
? Choose which packages to update.
dependencies
name range from to url
โฏโฏ @google-cloud/datastore latest 2.0.0 โฏ 4.1.2 https://github.com/googleapis/nodejs-datastore#readme
Does fast-crc32c actually used somewhere? Project search didn't show anything except presence in package.json. And only what I can see that this plugin does is producing a mess in console during install due to its dependency deprecations.
Also even if it used somewhere it adds only 3 times speedup. But it's not too much if we count private registry publishes. Maybe it will be valueble for some big companies that publish hundred packages per second, but for others it just adds complexity with compiling it with node-gyp.
The plugins fails to connect to a project which has enabled datastore and cloud storage:
Verdaccio doesn't need superuser privileges. Don't run it under root.
warn --- config file - /conf/config.yaml
warn -=- Using credentials in a file might be un-secure and is recommended for local development
warn -=- Google storage settings: {"projectId":"myproject","keyFilename":"/run/secrets/gcs-key.json"}
warn -=- Using credentials in a file might be un-secure and is recommended for local development
warn -=- Google storage settings: {"projectId":"myproject","keyFilename":"/run/secrets/gcs-key.json"}
warn --- Plugin successfully loaded: google-cloud
(node:12) UnhandledPromiseRejectionWarning: Error: 5 NOT_FOUND: The project myproject does not exist or it does not contain an active Cloud Datastore or Cloud Firestore database. Please visit http://console.cloud.google.com to create a project or https://console.cloud.google.com/datastore/setup?project=myproject to add a Cloud Datastore or Cloud Firestore database. Note that Cloud Datastore or Cloud Firestore always have an associated App Engine app and this app must not be disabled.
at Object.exports.createStatusError (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/client_interceptors.js:1204:28)
at InterceptingListener._callNext (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/client_interceptors.js:845:24)
(node:12) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:12) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
child process exited with code 0
I suspect that it's issue related to gRPC dependencies used by the plugin.
I have installed the plugin using:
npm install -g verdaccio-google-cloud
and then when I execute verdaccio
, I am getting an error that the plugin is not found
(node:428) UnhandledPromiseRejectionWarning: Error: "google-cloud" plugin not found
try "npm install verdaccio-google-cloud"
at /usr/lib/node_modules/verdaccio/build/lib/plugin-loader.js:88:13
at Array.map (<anonymous>)
at loadPlugin (/usr/lib/node_modules/verdaccio/build/lib/plugin-loader.js:62:43)
at LocalStorage._loadStorePlugin (/usr/lib/node_modules/verdaccio/build/lib/local-storage.js:865:63)
at LocalStorage._loadStorage (/usr/lib/node_modules/verdaccio/build/lib/local-storage.js:849:26)
at new LocalStorage (/usr/lib/node_modules/verdaccio/build/lib/local-storage.js:64:27)
at Storage.init (/usr/lib/node_modules/verdaccio/build/lib/storage.js:73:25)
at /usr/lib/node_modules/verdaccio/build/api/index.js:140:19
at Generator.next (<anonymous>)
at step (/usr/lib/node_modules/verdaccio/build/api/index.js:47:191)
(node:428) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:428) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Hi, I was trying to use this plugin and it seemed to work at first.
But after some time it starts to fail during npm install
commands in different unrelated projects.
Basically it responds with error from NPM:
npm ERR! code E500
npm ERR! 500 Internal Server Error: [email protected]
And on server verdaccio prints:
verdaccio-gc | http --> 200, req: 'GET https://registry.npmjs.org/ms' (streaming)
verdaccio-gc | http --> 200, req: 'GET https://registry.npmjs.org/ms', bytes: 0/26050
verdaccio-gc | error-=- gcloud: save package ms has failed err: Invalid Upload Request
verdaccio-gc | http <-- 500, user: null(192.168.176.1), req: 'GET /ms', error: Invalid Upload Request
I'm using verdaccio as a docker container with GCloud.
At first I thought it was networking issue in our cluster but then I tested it on local machine with different google account and same errors were occurring.
The error happens for random NPM packages and once it hits this error it always responds with this error for that package. And if I'm installing other packages that do not have this error then everything works fine.
Also if I'm just navigating to my registry website and checking package with error (ex http://localhost:4873/ms
) then I see response:
{
"error": "Invalid Upload Request"
}
For other working packages it responds with proper JSON with versions...
I would like to help debug this. It would be great to know how can I enable more logging so we can have better idea.
#!/bin/bash -eo pipefail
yarn publish
yarn publish v1.5.1
[1/4] Bumping version...
info Current version: 0.0.8
error An unexpected error occurred: "You must specify a new version with --new-version when running with --non-interactive.".
info If you think this is a bug, please open a bug report with the information provided in "/home/circleci/google-storage/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.
Exited with code 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.