Skip to main content

Posts

Showing posts from March, 2018

Common Errors - NPM , Nodemon

Can't seem to get Node js and NPM up and running: Reference Error on every command https://stackoverflow.com/questions/37513487/cant-seem-to-get-node-js-and-npm-up-and-running-reference-error-on-every-comma 'npm' is not recognized as internal or external command, operable program or batch file https://stackoverflow.com/questions/20992723/npm-is-not-recognized-as-internal-or-external-command-operable-program-or-bat https://github.com/remy/nodemon#nodemon Node / Express: EADDRINUSE, Address already in use - Kill server https://stackoverflow.com/questions/4075287/node-express-eaddrinuse-address-already-in-use-kill-server

Visual Studio Node JS - Initial Setup

Let's keep it precise and small steps. 1. You need Visual Studio 2017 Community or Professional. 2. Select NodeJs development package. 3. You need NodeJs runtime to be installed from https://nodejs.org/en/download/ 4. Start a new project from VS 2017 , TypeScript->NodeJs 5. You might get an error , http or project not found. 6. Check the reference of the TypeScript project. 7. If you see the warning icon indicating that mode reference missing. 8. Right click and click Install from npm. 9. I you receive an error message , just follow the instructions. 10. Specify the node.exe path in the proj properties.C:\node-v8.9.4-win-x64\node.exe 11. Build and voila , let's start.