Skip to content

Plugin error #1

@HighSec-org

Description

@HighSec-org

After installing the verdaccio-static-token via npm and starting veradaccio, it produces the error:

info --- plugin verdaccio-htpasswd successfully loaded (authentication)

info --- Configuring verdaccio-static-token

fatal--- uncaught exception, please report this

TypeError: (config || []).forEach is not a function

at module.exports (/usr/local/lib/node_modules/verdaccio-static-token/index.js:10:18)

at executePlugin (/usr/local/lib/node_modules/verdaccio/node_modules/@verdaccio/loaders/build/plugin-async-loader.js:166:12)

at asyncLoadPlugin (/usr/local/lib/node_modules/verdaccio/node_modules/@verdaccio/loaders/build/plugin-async-loader.js:126:18)

at async Auth.init (/usr/local/lib/node_modules/verdaccio/node_modules/@verdaccio/auth/build/auth.js:32:19)

at async defineAPI (/usr/local/lib/node_modules/verdaccio/build/api/index.js:35:3)

at async _default (/usr/local/lib/node_modules/verdaccio/build/api/index.js:107:10)

which seems to be an error with the plugin and not my configuration. The exact same config works if I remove the plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions