![]() So I run below command on my remote machine to install express.js C:\Users>npm install -g express-generator`Īfter installation of express. More information can be found in the npm documentation. a linter, testing libraries, etc.) then you should use npm install -save-dev. To verify your NPM installation, check for the installed npm version. Using nvm, you can install the current stable version of Node.js, and its accompanying version of NPM using the following command: nvm install node. If you're installing a package for development purposes (e.g. To install nvm follow the steps in our How to Install and Use the Node Version Manager NVM guide. In my case I'm using Windows on both remote as well as local machines and my requirement was of installation of express.js on local machine. When installing a package that will be bundled into your production bundle, you should use npm install -save. Install all the package(s) on a remote machine which has an internet access. Solution: I've a solution that works on Windows(not so sure of other platforms) through which I installed express framework with all the dependencies I required for my project which include cookie-parser, jade, morgan etc. Problem: I'd been in similar situation where I can't install the express.js and all other dependencies specifies by package.json on my local machine (offline) using npm due to unavailability of internet connectivity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |