Closed lautsevich closed 7 years ago
@lautsevich Does this also occur with newer versions of npm
?
I don't know. I used only the common configuration of Travis.
@lautsevich Please at least try updating:
before_install:
- npm install -g npm
- npm --version
@KenanY, thx! I moved forward. But I have new troubles now:
Deploying application
NPM API key format changed recently. If your deployment fails, check your API key in ~/.npmrc.
http://docs.travis-ci.com/user/deployment/npm/
~/.npmrc size: 48
npm WARN npm npm does not support Node.js v0.10.36
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! publish Failed PUT 403
npm ERR! Linux 4.8.12-040812-generic
npm ERR! argv "node" "/home/travis/.nvm/v0.10.36/bin/npm" "publish"
npm ERR! node v0.10.36
npm ERR! npm v4.1.1
npm ERR! code E403
npm ERR! you do not have permission to publish "travis". Are you logged in as the correct user? : travis
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/travis/build/lovata/travis/npm-debug.log
Done. Your build exited with 0.
Then I've added following lines to my Travis config:
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install nodejs
I moved even further. And I've got a new problem:
Deploying application
NPM API key format changed recently. If your deployment fails, check your API key in ~/.npmrc.
http://docs.travis-ci.com/user/deployment/npm/
~/.npmrc size: 48
npm ERR! publish Failed PUT 403
npm ERR! Linux 4.4.0-59-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v7.4.0/bin/node" "/home/travis/.nvm/versions/node/v7.4.0/bin/npm" "publish"
npm ERR! node v7.4.0
npm ERR! npm v4.1.1
npm ERR! code E403
npm ERR! you do not have permission to publish "travis". Are you logged in as the correct user? : travis
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/travis/build/lovata/travis/npm-debug.log
Done. Your build exited with 0.
Then I've configured my npmjs.com credentials again but it did not solve the problem. =(
@lautsevich Are you the owner of the travis
package?
It's just a test package and i really forgot to change credentials in package.json. I've done this and it works now. Thank you for your help!
I performed the instructions Publishing npm packages and and try to publish my test npm package at through npm Releasing (Travis CI ). However I got an error when running Travis build:
The full build job log you can find there and build tasks there.
What do i wrong? Thank you!