{"id":729,"date":"2024-03-25T04:37:10","date_gmt":"2024-03-25T04:37:10","guid":{"rendered":"https:\/\/www.windlayer.com\/blog\/?p=729"},"modified":"2024-03-25T04:57:19","modified_gmt":"2024-03-25T04:57:19","slug":"how-to-use-the-node-package-manager-npm-on-windows","status":"publish","type":"post","link":"https:\/\/www.windlayer.com\/blog\/how-to-use-the-node-package-manager-npm-on-windows\/","title":{"rendered":"How to use the Node Package Manager (NPM) on Windows"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"729\" class=\"elementor elementor-729\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c0b41bf e-flex e-con-boxed e-con e-parent\" data-id=\"c0b41bf\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ff111be elementor-widget elementor-widget-text-editor\" data-id=\"ff111be\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.19.0 - 07-02-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<p>Learn how to use Node Package Manager (NPM) on Windows with ease. Follow these step-by-step steps to install Node.js, check the NPM installation, create a Node.js project, install and manage packages, and optimize your workflow using custom NPM scripts.<\/p><p>\u00a0<\/p><p><strong>Install NPM on Windows<\/strong><\/p><ol><li>Download the Node.js installer from the official website <a href=\"https:\/\/nodejs.org\/\">https:\/\/nodejs.org\/<\/a>. Click on either the LTS or Current versions and the installer will start downloading.<\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ff4c86 elementor-widget elementor-widget-image\" data-id=\"3ff4c86\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.19.0 - 07-02-2024 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"624\" height=\"322\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture1-8.png\" class=\"attachment-large size-large wp-image-731\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture1-8.png 624w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture1-8-300x155.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c3873ca elementor-widget elementor-widget-text-editor\" data-id=\"c3873ca\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"2\">\n \t<li>After download is complete, double-click on the downloaded file to run the installer. <\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d499ad4 elementor-widget elementor-widget-image\" data-id=\"d499ad4\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"764\" height=\"590\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture2-9.png\" class=\"attachment-large size-large wp-image-732\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture2-9.png 764w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture2-9-300x232.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e701eed elementor-widget elementor-widget-text-editor\" data-id=\"e701eed\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"3\">\n \t<li>Tick on the \u201cI accept the terms License Agreement\u201d then click \u201cNext\u201d.<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-35ab27a elementor-widget elementor-widget-image\" data-id=\"35ab27a\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"764\" height=\"608\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture3-8.png\" class=\"attachment-large size-large wp-image-733\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture3-8.png 764w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture3-8-300x239.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aa1bac9 elementor-widget elementor-widget-text-editor\" data-id=\"aa1bac9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"4\">\n \t<li>You may choose your preferred installation location by clicking on the \u201cChange\u201d button. You may also install it in the default directory in your Program Files. Click \u201cNext\u201d to continue. <\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-46e2a06 elementor-widget elementor-widget-image\" data-id=\"46e2a06\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"610\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture4-9.png\" class=\"attachment-large size-large wp-image-734\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture4-9.png 764w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture4-9-300x240.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f0980e7 elementor-widget elementor-widget-text-editor\" data-id=\"f0980e7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"5\">\n \t<li>Keep the default settings in the Custom Setup page then click \u201cNext\u201d. <\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cf84653 elementor-widget elementor-widget-image\" data-id=\"cf84653\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"604\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture5-9.png\" class=\"attachment-large size-large wp-image-735\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture5-9.png 764w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture5-9-300x237.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f5e8288 elementor-widget elementor-widget-text-editor\" data-id=\"f5e8288\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"6\">\n \t<li>Tick the tick box as shown in the screenshot below and click \u201cNext\u201d.<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e49b3f0 elementor-widget elementor-widget-image\" data-id=\"e49b3f0\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"652\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture6-9.png\" class=\"attachment-large size-large wp-image-736\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture6-9.png 764w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture6-9-300x256.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2d4e0b8 elementor-widget elementor-widget-text-editor\" data-id=\"2d4e0b8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"7\">\n \t<li>Click \u201cInstall\u201d to continue with the installation.<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c6b8e1d elementor-widget elementor-widget-image\" data-id=\"c6b8e1d\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"588\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture7-8.png\" class=\"attachment-large size-large wp-image-737\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture7-8.png 764w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture7-8-300x231.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-662a78b elementor-widget elementor-widget-text-editor\" data-id=\"662a78b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"8\">\n \t<li>Once the installation is done, Click \u201cFinish\u201d <\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-af680f3 elementor-widget elementor-widget-image\" data-id=\"af680f3\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"604\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture8-8.png\" class=\"attachment-large size-large wp-image-738\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture8-8.png 764w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture8-8-300x237.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ab1bb57 elementor-widget elementor-widget-text-editor\" data-id=\"ab1bb57\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"9\">\n \t<li>&#8220;Install Additional Tools for Node.js\u201d window will show. Just press any key to proceed.<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a0857a7 elementor-widget elementor-widget-image\" data-id=\"a0857a7\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"421\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture9-6.png\" class=\"attachment-large size-large wp-image-739\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture9-6.png 938w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture9-6-300x158.png 300w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture9-6-768x404.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bccf3ca elementor-widget elementor-widget-text-editor\" data-id=\"bccf3ca\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"10\">\n \t<li>The Windows PowerShell will pop-up on the screen to show installation status of additional tools. Type \u201cENTER\u201d once completed to exit the window.<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-59a8e36 elementor-widget elementor-widget-image\" data-id=\"59a8e36\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"386\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture10-5.png\" class=\"attachment-large size-large wp-image-740\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture10-5.png 936w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture10-5-300x145.png 300w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture10-5-768x371.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f97dc2f elementor-widget elementor-widget-text-editor\" data-id=\"f97dc2f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><strong>Confirm if NPM and Node.js were successfully installed<\/strong><\/p><ol><li>Verify installation of Node.js and NPM by typing the commands below in the Command Prompt. Command Prompt will show the version of your Node.js and NPM<\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9303043 elementor-widget elementor-widget-code-highlight\" data-id=\"9303043\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>node -v<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2490cfe elementor-widget elementor-widget-code-highlight\" data-id=\"2490cfe\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>npm -v<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dc2447e elementor-widget elementor-widget-image\" data-id=\"dc2447e\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"145\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture11-4.png\" class=\"attachment-large size-large wp-image-741\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture11-4.png 940w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture11-4-300x54.png 300w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture11-4-768x139.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6406150 elementor-widget elementor-widget-text-editor\" data-id=\"6406150\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"2\">\n \t<li>You can also verify the installation from Windows PowerShell by typing the same command.<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c4dc9ec elementor-widget elementor-widget-code-highlight\" data-id=\"c4dc9ec\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>node -v<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dd97315 elementor-widget elementor-widget-code-highlight\" data-id=\"dd97315\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>npm -v<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-52ad4f7 elementor-widget elementor-widget-image\" data-id=\"52ad4f7\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"149\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture12-4.png\" class=\"attachment-large size-large wp-image-742\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture12-4.png 936w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture12-4-300x56.png 300w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture12-4-768x143.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6554176 elementor-widget elementor-widget-text-editor\" data-id=\"6554176\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"3\">\n \t<li>Test your Node.js by opening it and typing any command related to node.js<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5154f82 elementor-widget elementor-widget-image\" data-id=\"5154f82\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"168\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture13-4.png\" class=\"attachment-large size-large wp-image-743\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture13-4.png 936w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture13-4-300x63.png 300w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture13-4-768x161.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-980f3fb elementor-widget elementor-widget-text-editor\" data-id=\"980f3fb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><strong>Initialize a project using NPM<\/strong><\/p><p>To create a Node.js project, run the <strong>`npm init`<\/strong> command. This command will walk you through in creating a <strong>`package.json`<\/strong> file.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-563a697 elementor-widget elementor-widget-image\" data-id=\"563a697\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"202\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture14-3.png\" class=\"attachment-large size-large wp-image-744\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture14-3.png 936w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture14-3-300x76.png 300w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture14-3-768x194.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-97ec373 elementor-widget elementor-widget-text-editor\" data-id=\"97ec373\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Follow the command prompts to create the <strong>`package.json`<\/strong> file. This file will contain the important details of the project.<\/p><p>\u00a0<\/p><p><strong>Install modules using NPM <\/strong><\/p><p>To install modules in your Node.js project, use the command <strong>`npm install &lt;enter module name&gt;`<\/strong>.<\/p><p>Example: To install module such as Express, use the command <strong>`npm install express`<\/strong><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7458d3b elementor-widget elementor-widget-image\" data-id=\"7458d3b\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"122\" src=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture15-3.png\" class=\"attachment-large size-large wp-image-745\" alt=\"\" srcset=\"https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture15-3.png 934w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture15-3-300x46.png 300w, https:\/\/www.windlayer.com\/blog\/wp-content\/uploads\/2024\/03\/Picture15-3-768x117.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9c1e746 elementor-widget elementor-widget-text-editor\" data-id=\"9c1e746\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>NPM will download and install the module you specified and its dependencies into the project <strong>`node_modules`<\/strong> directory.<\/p><p><strong>Note<\/strong>: If you want all of your applications to use a specified module, install the module globally using <strong>`&#8211;global`<\/strong> flag so that all Node.js applications in your system can use it. Command: <strong>`npm install &lt;enter module name you want to install globally&gt; &#8212; global`<\/strong>.\u00a0<\/p><p>\u00a0<\/p><p><strong>Manage NPM packages<\/strong><\/p><p>The packages or modules you installed in your project can be managed using the NPM commands. Here are some of the essential commands that can help you manage your project:<\/p><ul><li>`npm uninstall &lt;enter package name&gt;` &#8211; used to uninstall a package<\/li><li>`npm list -g &#8211;depth=0` &#8211; List globally installed packages<\/li><li>`npm -g uninstall &lt;name&gt;`- used to uninstall a global package<\/li><li>`npm-windows-upgrade`- Upgrade npm on Windows<\/li><li>`npm run`- list available scripts to run<\/li><li>`npm install &lt;package-name&gt; &#8211;save-dev` &#8211; install package as a development dependency.<\/li><li>`npm update` -update all packages to their latest versions based on the version constraints specified in package.json.<\/li><li>`npm start`- start your Node.js application (if configured in package.json under &#8220;scripts&#8221;).<\/li><\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Learn how to use Node Package Manager (NPM) on Windows with ease. Follow these step-by-step steps to install Node.js, check the NPM installation, create a Node.js project, install and manage packages, and optimize your workflow using custom NPM scripts. \u00a0 Install NPM on Windows Download the Node.js installer from the official website https:\/\/nodejs.org\/. Click on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":738,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[28,27,9,11,12,10],"class_list":["post-729","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","tag-node","tag-npm","tag-windows","tag-windows-server","tag-windows-server-2019","tag-windows10"],"_links":{"self":[{"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/posts\/729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/comments?post=729"}],"version-history":[{"count":37,"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/posts\/729\/revisions"}],"predecessor-version":[{"id":781,"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/posts\/729\/revisions\/781"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/media\/738"}],"wp:attachment":[{"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/media?parent=729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/categories?post=729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.windlayer.com\/blog\/wp-json\/wp\/v2\/tags?post=729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}