Cannot publish NPM package: env: ‘to’: No such file or directory

The error must be happening at https://github.com/travis-ci/dpl/blob/v1.10.13/lib/dpl/provider/npm.rb#L33. Judging by the error message, NPM_API_KEY=#{option(:api_key)} has spaces and “to” is the word after the first space.

2 Likes