Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
b3kart
6y ago
0 comments
Save
Share
Does it not suggest that node_modules in the source directory isn't a good idea to begin with?
0 comments
2 comments · 2 top-level
top
newest
oldest
gitgud
6y ago
The project directory would contain everything needed for that project including node_modules (which is generated from the package.json)
Every nodejs project is structured this way... node_modules is
always
sitting next to your src...
edanm
6y ago
It is usually git-ignored, which means it isn't part of the "real" source directory (the one that is shared with other devs). It's a temporary output of the build process, in essence.
j
/
k
navigate · click thread line to collapse