drone-plugins / drone-npm

Drone plugin for publishing packages to NPM
http://plugins.drone.io/drone-plugins/drone-npm
Apache License 2.0
20 stars 18 forks source link

NPM root permission issue #26

Closed guiguan closed 7 years ago

guiguan commented 7 years ago

When running under root, some script in prepublish might cause cannot run in wd %s %s (wd=%s) error.

Can you add unsafe-perm = true to the .npmrc to fix this issue?

donny-dont commented 7 years ago

Hi @guiguan. There are no guarantees that the plugins/npm image has everything needed to run any publish steps. See #5 .

guiguan commented 7 years ago

@donny-dont Maybe append to exist .npmrc instead of overwriting it?

guiguan commented 7 years ago

unsafe-perm = true is really handy for root docker environment :P