Skip to content

Commit

Permalink
docs: add details on NPM error 403 to troubleshooting doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Schalk Neethling authored and pvdlg committed Apr 26, 2018
1 parent 218aa32 commit 5af9031
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/support/troubleshooting.md
Expand Up @@ -29,3 +29,18 @@ You can recover from that issue by identifying the commit in your branch history
$ git tag -f v<version of the last release> <commit sha1 corresponding to last release>
$ git push -f --tags origin <your release branch>
```

## You do not have permission to publish 'package-name'

When running semantic-release you may encounter the following error:

```
An error occurred while running semantic-release: { Error: Command failed: npm publish ./. --registry https://registry.npmjs.org/
npm ERR! publish Failed PUT 403
npm ERR! code E403
npm ERR! You do not have permission to publish "<package-name>". Are you logged in as the correct user? : <package-name>
```

This message is a little unclear, and might not have anything to with your `NPM_TOKEN` or authentication method. It might instead be related to the package name itself. If there is already a package with the same name as yours or, there is a very close match, it could trigger this error.

Best way to be sure, is to search [npmjs.org](https://www.npmjs.com/)) using your package name. If there is a name conflict, rename your package in your `package.json`

0 comments on commit 5af9031

Please sign in to comment.