© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
generates directive on `node_modules` directory - Task
T
Task
•
4y ago
•
3 replies
leaanthony
generates directive on `node_modules` directory
I
'm trying to work out how to run
npm install
npm install
but only when the following is true
:
package.json
package.json
has been updated OR
node_modules
node_modules
directory doesn
't exist
.
I can make the first condition work but not both
. Many thanks
!
Task
Join
Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.
613
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Glob patterns in generates
T
Task / help
9mo ago
Equivalence between sources and generates
T
Task / help
8mo ago
Access to sources/generates in a variable
T
Task / help
3mo ago