# Npm publish : error 404

**URL:** <https://discourse.joplinapp.org/t/npm-publish-error-404/50685>\
**Category:** Plugins\
**Created:** [17 August 2026 13:54 UTC](https://discourse.joplinapp.org/t/npm-publish-error-404/50685 "2026-08-17T13:54:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoineschmitt](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/antoineschmitt/32/29568_2.png) [@antoineschmitt](https://discourse.joplinapp.org/u/antoineschmitt)\
**Post date:** [17 August 2026 13:54 UTC](https://discourse.joplinapp.org/t/npm-publish-error-404/50685/1 "2026-08-17T13:54:24Z")

</div>

Hello,

I slightly updated my plugin, and bumped the version number (using 'npm run updateVersion').

When I try to publish the new version to [npmjs.com](http://npmjs.com), I get a E404 error :

`npm error code E404`  
`npm error 404 Not Found - PUT ``https://registry.npmjs.org/joplin-plugin-char-word-and-line-count`` - Not found`  
`npm error 404`  
`npm error 404 The requested resource 'joplin-plugin-char-word-and-line-count@1.0.4' could not be found or you do not have permission to access it.`

Here is the full log :

[2026-08-17T13\_39\_50\_912Z-debug-0.log](https://discourse.joplinapp.org/uploads/short-url/wQHo7OHvxxHPbqq6lOVYScD7TBg.log) (3.4 KB)

Thanks for your help

---

<div class="post-metadata">

**Author:** ![antoineschmitt](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/antoineschmitt/32/29568_2.png) [@antoineschmitt](https://discourse.joplinapp.org/u/antoineschmitt)\
**Post date:** [17 August 2026 14:00 UTC](https://discourse.joplinapp.org/t/npm-publish-error-404/50685/2 "2026-08-17T14:00:40Z")

</div>

Just for the record, the solution is to first login to the npm registry in the terminal : 'npm login'
