Skip to main content
713 votes
33 answers
1.9m views

I've got an ApolloServer project that's giving me trouble, so I thought I might update it and ran into issues when using the latest Babel. My "index.js" is: require('dotenv').config() import ...
user3810626's user avatar
  • 7,809
1127 votes
42 answers
1.9m views

I read how TypeScript module resolution works. I have the following repository: @ts-stack/di. After compiling the directory structure is as follows: ├── dist │   ├── annotations.d.ts │   ├── ...
ktretyak's user avatar
  • 32.2k
1251 votes
24 answers
905k views

Trying to install modules from GitHub results in this error: ENOENT error on package.json. Easily reproduced using express: npm install https://github.com/visionmedia/express throws error. npm ...
guy mograbi's user avatar
  • 28.9k
53 votes
2 answers
112k views

What exactly is the node_modules folder and what is it for? I know when we download any library with npm, the library goes to folder node_modules. I also know that, when we are going to upload it (to ...
izaac mendes's user avatar
2254 votes
68 answers
2.7m views

I just installed Node.js and npm. I installed npm for access to additional Node.js modules. After I installed Node.js and npm, I noticed that neither were the latest versions available. So my ...
Dail's user avatar
  • 22.8k
762 votes
26 answers
520k views

How do I use a local version of a module in Node.js? For example, in my app, I installed coffee-script: npm install coffee-script This installs it in ./node_modules and the coffee command is in ./...
typeoneerror's user avatar
  • 57.2k
167 votes
6 answers
820k views

Basically, I am using javascript to scrape data from Google Play store using: 1-Request 2-Cheerios 3-QueryString I used Google Market API from Github which uses require as following: var request = ...
Hunain Usman's user avatar
  • 2,228
262 votes
6 answers
537k views

I'm trying to understand how recreating the node_modules directory for deployment works. We're using npm ci instead of npm install to ensure a clean slate during deployment. However, when we run it ...
Floating Sunfish's user avatar
418 votes
21 answers
564k views

I was reading about path-mapping in file tsconfig.json, and I wanted to use it to avoid using the following ugly paths: The project organization is a bit weird because we have a mono-repository that ...
Remo H. Jansen's user avatar
140 votes
17 answers
100k views

I have just reinstalled Ubuntu 12.04 LTS, and before anything else i did these steps: Installed Node via package manager with the following script sudo apt-get update sudo apt-get install python-...
HeberLZ's user avatar
  • 14.2k
235 votes
29 answers
318k views

I am running a node application on terminal. Have recently upgraded to node v8.5.0, but am getting this error: Error: The module '/tidee/tidee-au/packages/tidee-au-server/node_modules/bcrypt/lib/...
JoeTidee's user avatar
  • 26.3k
228 votes
23 answers
86k views

This seems to be a trivial problem, but it is not very obvious what settings/configurations need to be used to solve this issue. Here are the Hello World program directory structure and the source ...
user3330840's user avatar
  • 7,563
364 votes
12 answers
281k views

I have a question concerning best practice for including node_modules into a HTML website. Imagine I have Bootstrap inside my node_modules folder. Now for the production version of the website, how ...
Chris's user avatar
  • 6,283
695 votes
12 answers
1.2m views

I have a project containing multiple other projects : Main project Mini project 1 Mini project 2 All containing node_modules folder. I want git to ignore the folder no matter where it is starting ...
Mehdiway's user avatar
  • 10.7k
373 votes
22 answers
406k views

I'm trying to install nodeJs into my Ubuntu 14.04 in order to use GruntJs. I've read about Ubuntu different way of doing it (issues?), so this is what I've done in order to install it: sudo apt-get ...
Rosamunda's user avatar
  • 15k

15 30 50 per page
1
2 3 4 5
29