{"componentChunkName":"component---src-templates-blog-post-js","path":"/2020/Jan/8/nodejs-dev-env/","result":{"data":{"mdx":{"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Node Development Environment Set-up - For Windows\",\n  \"date\": \"2020-01-08T00:00:00.000Z\",\n  \"published\": true,\n  \"tags\": [\"chocolatey\", \"node\", \"npm\", \"vscode\", \"git\", \"javascript\", \"es6\", \"windows\"]\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component '\" + name + \"' was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"Node is a cross-platform application development framework that has gained popularity among developers.\\nIn 2020, with never-ceasing demands for cross-platform applications, node is still the most popular framework.\\nSo, what better things to do than setting up your development environment now?\"), mdx(\"p\", null, \"Although a node development environment can be set up on Windows, Linux, and Mac systems, in this article,\\nwe will install \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"node\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"npm\"), \", visual studio \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"code\"), \", and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"git\"), \" on a Windows platform.\\nWe should be able to set up on Windows 7, 8, and 10 without a problem.\\nAlso, to better manage our software installations, we are going to use the software package manager \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"chocolatey\"), \".\"), mdx(\"p\", null, \"Software package managers allow us to install, uninstall, and update software packages with ease.\"), mdx(\"p\", null, \"To install chocolatey, follow the steps at \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://chocolatey.org/install\"\n  }), \"https://chocolatey.org/install\"), \" or run powershell as an administrator then copy and paste the following dcommand:\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-console\"\n  }), \"Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))\\n\")), mdx(\"p\", null, \"Now that you've installed chocolatey, let's install the rest of the software packages.\"), mdx(\"h4\", null, \"Node and NPM\"), mdx(\"p\", null, \"Make sure you're still running powershell as administrator then run the folowing command:\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-console\"\n  }), \"choco install nodejs\\n\")), mdx(\"p\", null, \"When node installation is complete, powershell requires a reload to recognize the newly installed software packages.\\nSo, close the powershell terminal and open it again.  This time, it doesn't need to be run as an administrator.\\nLet's check that node has been installed by checking its version.  \"), mdx(\"p\", null, \"On the powershell terminal, type the following command and you should see the corresponding output.\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-console\"\n  }), \"node -v\\n\")), mdx(\"p\", null, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"v12.14.1\")), mdx(\"p\", null, \"NPM was installed automatically, when we intalled node.  So, to check its version, type the following command:\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-console\"\n  }), \"npm -v\\n\")), mdx(\"p\", null, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"6.13.4\")), mdx(\"h4\", null, \"Visual Studio Code\"), mdx(\"p\", null, \"So far, so good.  Now, we need to  install visual studio code.\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-console\"\n  }), \"choco install vscode\\n\")), mdx(\"p\", null, \"Let's check its version.\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-console\"\n  }), \"code -v\\n\")), mdx(\"p\", null, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"1.14.1\")), mdx(\"h4\", null, \"Git\"), mdx(\"p\", null, \"And finally, let's install git to keep track of different versions of our future projects.\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-console\"\n  }), \"choco install git\\n\")), mdx(\"p\", null, \"Check its version.\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-console\"\n  }), \"git --version\\n\")), mdx(\"p\", null, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"git version 2.19.2.windows.1\")), mdx(\"p\", null, \"That's it pancit!  Now, we can start creating node projects.\"));\n}\n;\nMDXContent.isMDXComponent = true;","excerpt":"Node is a cross-platform application development framework that has gained popularity among developers. \nIn 2020, with never-ceasing demands…","frontmatter":{"title":"Node Development Environment Set-up - For Windows","date":"January 08, 2020","update":null}}},"pageContext":{"slug":"/2020/Jan/8/nodejs-dev-env/","previous":null,"next":{"fields":{"slug":"/2020/Jan/9/node-http-server/"},"frontmatter":{"title":"Node Web Server- HTTP"}}}},"staticQueryHashes":["2537605155","63159454"]}