# Just noticed this reported from npm? Any idea when NR will jump to pkg.json? If ever?

**URL:** <https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779>\
**Category:** General\
**Created:** [21 February 2022 22:49 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779 "2022-02-21T22:49:46Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [21 February 2022 22:49 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/1 "2022-02-21T22:49:46Z")

</div>

Just noticed this reported from npm? Any idea when NR will jump to pkg.json? If ever?

npm WARN deprecated package.json@2.0.1: Use pkg.json instead.  
.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 February 2022 22:58 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/2 "2022-02-21T22:58:49Z")

</div>

Any more context? Like where that is coming from? The core? A node? Your nodejs/npm versions etc

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 February 2022 23:03 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/3 "2022-02-21T23:03:30Z")

</div>

If you run `npm list package.json` from your `.node-red` folder, what do you see?

---

<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:** [21 February 2022 23:15 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/4 "2022-02-21T23:15:24Z")

</div>

> [@Nodi.Rubrum](#):
>
> Any idea when NR will jump to pkg.json? If ever?

Node-RED has no direct dependency on the deprecated `package.json` module that is generating that message.

It is either coming from a deeper dependency (although I've never seen that message, so I don't believe that is the case) or it's coming from another module you have installed.

The `npm list` command suggested by @Steve-Mcl will help identify what is bringing that module in.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [21 February 2022 23:19 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/5 "2022-02-21T23:19:59Z")

</div>

Sure... Have been updating my image library to bullseye based images, and this warning popped up on a fresh install of NR on Pi OS 11 lite. I have a script that installs a standard set of modules I need for the minimum core flows I run on sensor oriented Pi devices. The version of the script pushes everything to 'latest' since this is test build image. So if some of the versions of modules seems aggressive, it is.

$ npm list  
node-red-project@0.0.1 /home/pi/.node-red  
├── i2c-bus@5.2.2  
├── javascript-color-gradient@2.3.4  
├── n@8.0.2  
├── node-red-contrib-bme280@1.0.0  
├── node-red-contrib-counter@0.1.6  
├── node-red-contrib-cron-plus@1.5.6  
├── node-red-contrib-fs-ops@1.6.0  
├── node-red-contrib-linux-network-stats@0.2.5  
├── node-red-contrib-loop-processing@0.5.1  
├── node-red-contrib-md5@1.0.4  
├── node-red-contrib-os@0.2.1  
├── node-red-contrib-play-audio@2.5.0  
├── node-red-contrib-ring-buffer@0.10.0  
├── node-red-contrib-simple-gate@0.5.2  
├── node-red-contrib-traffic@0.2.1  
├── node-red-contrib-ui-led@0.4.11  
├── node-red-dashboard@3.1.6  
├── node-red-node-mysql@1.0.1  
├── node-red-node-pi-gpio@2.0.1  
├── node-red-node-pi-gpiod@0.4.0  
├── node-red-node-ping@0.3.1  
├── node-red-node-random@0.4.0  
├── node-red-node-serialport@0.15.0  
├── node-red-node-smooth@0.1.2  
├── node-red-node-ui-list@0.3.6  
├── node-red-node-ui-table@0.3.12  
├── npm@8.5.1  
├── os@0.1.2  
├── package.json@2.0.1  
└── Package@0.0.1

$ node -v  
v16.13.2

---

<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:** [21 February 2022 23:22 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/6 "2022-02-21T23:22:12Z")

</div>

That isn't the command Steve asked you to run.

Please run `npm list package.json`

---

<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:** [21 February 2022 23:23 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/7 "2022-02-21T23:23:57Z")

</div>

Just to add, all of this is under your .node-red directory - so this is all the extra stuff you have installed. It is not a dependency of the core of Node-RED. So your question about Node-RED needing to update is certainly misplaced.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [21 February 2022 23:25 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/8 "2022-02-21T23:25:06Z")

</div>

Misplaced or just informational? Was curious if that was a 'standard' going forward. If you read my question CAREFULLY, I did ask if the new file name was EVER applicable. NR is based on Node.js so as Node.js changes standards, etc., may pull NR forward as needed, so that is why I asked what I asked.... what I am surprised by, is your response, this asked in good faith... NOT demand or inquisition.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 February 2022 23:26 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/9 "2022-02-21T23:26:37Z")

</div>

We are still interested where it is coming from (just in case)

Can you please run the command I asked & show us the output.

> [@Steve-Mcl](#):
>
> run `npm list package.json` from your `.node-red` folder

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 February 2022 23:29 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/10 "2022-02-21T23:29:06Z")

</div>

> [@Nodi.Rubrum](#):
>
> If you read my question CAREFULLY, I did ask if the new file name was EVER applicable

I can see your confusion. The message about `package.json` being depreciated is not to do will the file name but an actual npm package called `package.json` that has been depreciated.

[https://www.npmjs.com/package/package.json](https://www.npmjs.com/package/package.json)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 February 2022 23:29 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/11 "2022-02-21T23:29:14Z")

</div>

> [@Nodi.Rubrum](#):
>
> if that was a 'standard' going forward

It isn't a standard, it is a possibly clumsily named npm package.

npm's package.json file isn't changing as far as I know or can see.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [21 February 2022 23:33 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/12 "2022-02-21T23:33:29Z")

</div>

Right... distracted for a second...

$ npm list package.json  
node-red-project@0.0.1 /home/pi/.node-red  
└── package.json@2.0.1

Yeah, I could not see any logical reason for the warning, seemed really odd. In that I don't recall seeing it the past... maybe I just missed seeing, since much of what I do is via automation.

---

<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:** [21 February 2022 23:53 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/13 "2022-02-21T23:53:49Z")

</div>

I apologise that my response didn't come across well.

From what I can see, I think you may have mistakenly run `npm install package.json` as that is the only way that module would have got added as a dependency in your own package.json file.

You should be able to safely remove that module as nothing is actually using it.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [22 February 2022 00:11 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/14 "2022-02-22T00:11:14Z")

</div>

Ah. given all the automation script, and updates being done in the lab test builds... that could have happened. I will have to check the logs. Should only be running 'npm install' or 'npm rebuild' as applicable of course.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 April 2022 00:12 UTC](https://discourse.nodered.org/t/just-noticed-this-reported-from-npm-any-idea-when-nr-will-jump-to-pkg-json-if-ever/58779/15 "2022-04-23T00:12:12Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
