Each module within the node_modules directory maintains its own directory that contains any modules that it depends on, and this behavior repeats for every module all the way down the dependency chain. When modules are installed, they are stored in the node_modules directory at the root of your application directory structure. Modules are usually installed using the npm command-line tool, however some modules (such as the http module) are provided as part of the core Node.js package. Modules are loadable JavaScript packages that provide specific functionality for your application. For an example of how to configure this environment, see Azure Startup task to run npm install to avoid deploying node modulesĪzure Virtual Machines are not discussed in this article, as the deployment experience in a VM is dependent on the operating system hosted by the Virtual Machine. It is possible to enable support for installing modules using package.json or npm-shrinkwrap.json files on Cloud Services however, this configuration requires customization of the default scripts used by Cloud Service projects. If you are already familiar with using Node.js modules, package.json and npm-shrinkwrap.json files, the following information provides a quick summary of what is discussed in this article:Īzure App Service understands package.json and npm-shrinkwrap.json files and can install modules based on entries in these files.Īzure Cloud Services expects all modules to be installed on the development environment, and the node_modules directory to be included as part of the deployment package. It provides guidance on ensuring that your application uses a specific version of a module as well as using native modules with Azure. This document provides guidance on using Node.js modules with applications hosted on Azure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |