Closed
Description
Description
I forgot to build and run npm publish
. Then I opened the package page(/${owner}/-/packages), got the error:
.../context_response.go:86:HTML() [E] Render failed: failed to render template: user/overview/packages, error: template error: builtin(bindata):package/shared/list:23:16 : executing "package/shared/list" at <.FullWebLink>: can't evaluate field FullWebLink in type *packages.PackageDescriptor
----------------------------------------------------------------------
<a href="{{.FullWebLink}}">{{.Package.Name}}</a>
^
----------------------------------------------------------------------
npm publish
log
npm notice
npm notice 📦 @xx/[email protected]
npm notice === Tarball Contents ===
npm notice 0B README.md
npm notice 1.2kB package.json
npm notice === Tarball Details ===
npm notice name: @xx/xxx
npm notice version: 0.0.0
npm notice filename: xx-xxx-0.0.0.tgz
npm notice package size: 611 B
npm notice unpacked size: 1.2 kB
npm notice shasum: ac41fad07b08f47081026864855aa9e4c7c76
npm notice integrity: sha512-nazyDBWYD6SJz/cTKvAR13g==
npm notice total files: 2
npm notice
npm notice Publishing to https://xxx/api/packages/xxx/npm/ with tag latest and default access
npm run publish
npm ERR! Cannot read properties of undefined (reading 'stdin')
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-28T02_20_05_899Z-debug-0.log
npm ERR! code 1
npm ERR! path /workspace/xx/xxx
npm ERR! command failed
npm ERR! command sh -c npm run publish
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-28T02_17_41_367Z-debug-0.log
Gitea Version
v1.21.8
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Docker
How are you running Gitea?
docker 1.21.8-rootless
Database
PostgreSQL