V
V
Vadim Ivanenko2015-07-26 01:58:48
ASP.NET
Vadim Ivanenko, 2015-07-26 01:58:48

Long loading of the Azure Cloud emulator with a project with node modules. What could it be?

There is an Azure Cloud Servie project with a Web role. Web role - WebApplication (SPA, static only). I use Node.js, NPM to install dev dependencies.
The problem is that Azure Cloud Emulator takes a very long time to start up when the node_modules folder is full of dependencies (16000 files, 60Mb). Dependencies are various utilities for development.
At the same time, the bower_components folder with the same number of files (libraries for the front-end like Angular, etc.) has the same number of files, the size is 220Mb, but it has very little effect on the emulator startup speed (maybe it doesn’t even affect at all) . Checked by deleting the node_modules folder.
What can be in this folder that would cause the emulator to run longer than 5 minutes?
Just in case, I will give the configs for npm, bower, but I doubt that the problem is in them. At first I thought that the emulator started downloading dependencies, but then I deleted these configs and left only the node_modules folder. But as before, he was stupid for a very long time.
package.json file

{
  "name": "test",
  "version": "0.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "devDependencies": {
    "bower": "~1.3.9",
    "grunt-bower-concat": "~0.5.0",
    "grunt-contrib-concat": "~0.5.1",
    "grunt-contrib-uglify": "~0.9.1",
    "grunt-ng-annotate": "~1.0.1",
    "grunt-contrib-watch": "~0.6.1"
  }
}

bower.json file
{
    "name": "test",
    "version": "0.0.0",
    "authors": [
        ""
    ],
    "ignore": [
        "**/.*",
        "node_modules",
        "bower_components",
        "test",
        "tests"
    ],
    "dependencies": {
        "bootstrap": "~3.3.5",
        "angular": "~1.4.1",
        "angular-resource": "~1.4.1",
        "angular-cookies": "~1.4.1",
        "angular-ui-router": "~0.2.15",
        "angular-bootstrap": "~0.13.0",
        "angular-acl": "~0.1.2",
        "bootbox": "~4.4.0"
    }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question