Linked Questions

2762 votes
28 answers
1.0m views

I understand that a .gitignore file cloaks specified files from Git's version control. How do I tell .gitignore to ignore everything except the files I'm tracking with Git? Something like: # Ignore ...
Andrew's user avatar
  • 39.1k
220 votes
9 answers
103k views

I'm wondering if we should be tracking node_modules in our repo or doing an npm install when checking out the code?
Tolga E's user avatar
  • 12.8k
246 votes
4 answers
144k views

Question 1: What exactly is the purpose of installing Twitter Bootstrap through npm? I thought npm was meant for server side modules. Is it faster to serve the bootstrap files yourself than using a ...
James Fazio's user avatar
  • 6,450
116 votes
6 answers
77k views

npm allows us to specify bundleDependencies, but what are the advantages of doing so? I guess if we want to make absolutely sure we get the right version even if the module we reference gets deleted, ...
balupton's user avatar
  • 49.1k
43 votes
22 answers
172k views

I installed nodejs in C:\Program Files (x86)\nodejs then I created a .js file and saved it in my desktop just to output 'hello world' in the console: console.log('hello world'); When I tried to run ...
Laura Martinez's user avatar
78 votes
6 answers
54k views

I'm about to attempt my first AngularJS project, and it makes sense to use Node.js for the back end, even though it means learning both AngularJS and Node.js from scratch at the same time. The first ...
jonhobbs's user avatar
  • 28.2k
68 votes
6 answers
61k views

I'm playing with Facebook/React Native, and when I run git init, I have no idea what should be ignored expect node_modules folder, Should I commit all iOS folder? Thanks
Yuan He's user avatar
  • 1,183
16 votes
2 answers
3k views

Checking in node_module was the community standard but now we also have an option to use shrinkwrap. The latter makes more sense to me but there is always the chance that someone did "force publish" ...
Yaron Naveh's user avatar
  • 24.6k
15 votes
1 answer
21k views

I'm new to Node but am enjoying myself so far. I was trying to move my node_modules (libraries) directory outside of the public 'webroot' and need advice and guidance. I've setup my simple expressJS ...
Jujhar Singh's user avatar
  • 3,841
0 votes
3 answers
10k views

I am a total beginner in React. I have forked an application on Github and am trying to run it on my local machine. However, as you can see, the folder structure does not have node modules. Does this ...
Adarsh Kumar's user avatar
3 votes
3 answers
2k views

I am deploying my node.js app to Appfog but since their install script cannot parse npm-shrinkwrap.json the whole deploy process fails. An example dependency in shrinkwrap.json today looks like this ...
Kimpo's user avatar
  • 5,836
1 vote
1 answer
4k views

I downloaded and extracted Bootstrap 4 today and am getting an error: Setup pwd /Volumes/projects/bs4_temp/bootstrap-4.0.0 kevin $ dir total 1432 drwxr-xr-x 14 kevin staff 16384 28 May 15:36 . ...
KevInSol's user avatar
  • 2,684
5 votes
2 answers
2k views

I know that NuGet packages (at least nowadays) should not be included in version control. How should I exclude files a package adds to my project? For example: I have a .NET MVC project that uses the ...
ricksmt's user avatar
  • 899
5 votes
2 answers
2k views

I am completely new to Azure and Angular2. The Objective Setup Azure Continuous deployment with GitHub. The Problem Azure is picking up commits to the main branch on the repository. So this part ...
Frank Liu's user avatar
  • 1,666
1 vote
1 answer
2k views

Some related questions: First, I am using PhpStorm 9.0.2 and would like to move the node_modules package directory from the root directory of my project to a sub-directory. But when I try to do ...
Kevin's user avatar
  • 393

15 30 50 per page