bravinator932421
bravinator932421

Reputation: 193

Travis error: package is not in the npm registry

I've built an npm package which is private. Travis then builds my app and throw an error @<organization>/<package-name> is not in the npm registry.

I've created a new NPM_TOKEN and as an admin for my org. I've included this in the env vars for travis. For some reason travis still never seems to find my package. Any help is greatly appreciated. My NPM version in travis is 3.8.6

Upvotes: 0

Views: 169

Answers (1)

bravinator932421
bravinator932421

Reputation: 193

I solved this by including in my install for travis: npm set //registry.npmjs.org/:_authToken $NPM_TOKEN

Upvotes: 1

Related Questions