The reason for installing the two is to give you a clear understanding of the contents of the “package.json” file.Įxecute the commands below. The other is a “ development package,” which is not required in production. The first is a “ required package,” and is necessary for your app to run in production. #PACKAGE.JSON CARET MEANING INSTALL#Install NPM Packagesįor this post, you will install two packages. Now, install several NPM packages since that’s where all the fun begins. When you open the “package.json” file, you will notice that it only shows you the general information of your application-nothing much interesting at this point. You will also notice that there is no “package-lock.json” file. You will see the generated “package.json” file with details similar to those shown in the image below. Open the project folder (NodeAppOne) using any text editor like VSCode, Sublime Text, etc. When done, you will see a prompt to save the configurations. You can leave most of these as they are, but for a better understanding of the “package.json” file, be sure to provide the “ package name,” “ description,” “ author“, and “ license.” Feel free to use some of the details shown in the image below. This command will give you a few prompts. Launch the Terminal (or CMD for Windows OS) and navigate to the newly created folder. Download and Install NodeJS, which will automatically install NPM on your computer.Ĭreate an empty folder anywhere you prefer on your Desktop and give it a name (say NodeAppOne). Luckily, you don’t need to install the two packages separately. Tip: This step will require you to have NPM and NodeJS installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |