我想在App上部署Verdaccio,并在Google云上存储。
我设法在App上启动应用程序,但在数据存储访问方面有一个错误。我不知道如何修复它,而且文档对此还不清楚。
你能帮帮我吗?
登录本地计算机:
./node_modules/.bin/verdaccio --config ./config.yaml
warn --- config file - /home/workspace/verdaccio/config.yaml
warn --- Using credentials in a file might be un-secure and is only recommended for local development
warn --- Google storage settings: {"projectId":"myproject","keyFilename":"./keyFile.json"}
warn --- Plugin successfully loaded: verdaccio-google-cloud
warn --- gcloud: [datastore getSecret] init error InternalServerError: 7 PERMISSION_DENIED: Missing or insufficient permissions.
fatal--- uncaught exception, please report this
ServiceUnavailableError: [getSecret] permissions error用户是Cloud的所有者和桶的管理员(抱歉,它是法语):
登录GCP:

store:
google-cloud:
projectId: <Google Project ID>
kind: npm1234
bucket: verdaccio-bucket
resumable: true
keyFilename: ./userKey.json
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
"@myRepository/*":
access: $authenticated
publish: $authenticated
"**":
access: $authenticated
publish: $authenticated
proxy: npmjs
logs: { type: stdout, format: pretty, level: http }
auth:
htpasswd:
file: ./htpasswd
max_users: -1
algorithm: bcrypt
web:
enable: false
title: Verdaccio-UI
darkMode: true
scope: "@myRepository/*"
i18n:
web: fr-FRPackage.json:
...
"scripts": {
"deploy": "gcloud app deploy app.yaml",
"start": "./node_modules/.bin/verdaccio --config ./config.yaml --listen $PORT"
},
"dependencies": {
"verdaccio": "^5.2.2",
"verdaccio-google-cloud": "^10.0.2",
"verdaccio-htpasswd": "^10.0.1"
}
...发布于 2021-12-03 10:49:31
我发现了问题。在datastore,我没有实体。我创造了一个,现在起作用了。插件文档不清楚如何使用datastore :(。
https://stackoverflow.com/questions/70203317
复制相似问题