# Invalid tag name ""~"0.1.40" - Removing or Upgrading Modules

**URL:** https://discourse.nodered.org/t/invalid-tag-name-0-1-40-removing-or-upgrading-modules/43330
**Category:** General
**Created:** [28 March 2021 20:24 UTC](https://discourse.nodered.org/t/invalid-tag-name-0-1-40-removing-or-upgrading-modules/43330 "2021-03-28T20:24:23Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [28 March 2021 21:57 UTC](https://discourse.nodered.org/t/invalid-tag-name-0-1-40-removing-or-upgrading-modules/43330/6 "2021-03-28T21:57:01Z")

</div>

Edit your `~/.node-red/package.json`, look under the dependencies section for `""~"0.1.40"` and replace it with `"~0.1.40"`.

There was a bug in an older version of Node-RED when used with npm 7 that would cause this invalid version to be saved to the file.

If you're on the latest version of Node-RED, there's no reason not to use npm 7.

---

_[View the full topic](https://discourse.nodered.org/t/invalid-tag-name-0-1-40-removing-or-upgrading-modules/43330)._
