-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release