Closed
Description
Current Behavior:
Running npm install
with no arguments causes the timestamp of package.json to be touched.
Expected Behavior:
package.json should not be written.
Steps To Reproduce:
- Enter a directory with a valid
package.json
, observe the timestamp. - Run
npm install
- See that the package.json timestamp is updated.
- Wait a minute and repeat step 2-3, you see will se timestamp update again.
Environment:
- OS: Fedora 32
- Node: 15.8.0
- npm: 7.5.4
Additional comment
This creates problems/annoyances for other programs that are watching for file updates. In my case running npm install
causes my text editor to ask if I want to reload the file.