Linked Questions
29 questions linked to/from Should I check in folder "node_modules" to Git when creating a Node.js app on Heroku?
2762
votes
28
answers
1.0m
views
Make .gitignore ignore everything except a few files
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 ...
220
votes
9
answers
103k
views
Should the "node_modules" folder be included in the Git repository?
I'm wondering if we should be tracking node_modules in our repo or doing an npm install when checking out the code?
246
votes
4
answers
144k
views
Purpose of installing Twitter Bootstrap through npm?
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 ...
116
votes
6
answers
77k
views
Advantages of bundledDependencies over normal dependencies in npm
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, ...
43
votes
22
answers
172k
views
nodejs module.js:340 error: cannot find module
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 ...
78
votes
6
answers
54k
views
Structuring a Node.js and AngularJS application
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 ...
68
votes
6
answers
61k
views
What folders should be git ignored in React Native project?
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
16
votes
2
answers
3k
views
Check in node_modules vs. shrinkwrap
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" ...
15
votes
1
answer
21k
views
Can I put the npm node_modules directory outside of my 'webroot'
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 ...
0
votes
3
answers
10k
views
Unable to run React app on local machine as node modules is missing
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 ...
3
votes
3
answers
2k
views
Using specific version of npm shrinkwrap
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
...
1
vote
1
answer
4k
views
error running 'npm run dist' to build bootstrap4
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 .
...
5
votes
2
answers
2k
views
How to Exclude NuGet Content from Source Control
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 ...
5
votes
2
answers
2k
views
Azure Continuous deployment failed with Github when deploying an Angular 2 project
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 ...
1
vote
1
answer
2k
views
PhpStorm / WebStorm node_modules and package.json
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 ...