Visual studio for mac node js project

broken image

Once you’ve found the installation directory, copy that directory path to your clipboard for a future step.

broken image

Unless you picked a custom installation directory when you initially installed Node.js, this is likely the path you’ll use. By default, Node.js installs to C:\Program Files\nodejs. Here’s how to synchronize them: Step 1: Find the Node.js install locationįirst, find the Node.js installation that you use on the command line. The solution was to point Visual Studio to the version of Node.JS that I had already set up externally to Visual Studio. Specifically, I had an issue with node-sass and windows bindings. However, I ran into an issue I updated Node.js outside of Visual Studio, but since Visual Studio uses its own install that is separate from any outside installation, you can potentially run into a node_modules package dependency issue where one version of npm installs a package (which makes it rely on that version of Node/npm), and then you can’t run commands in the other version (they break).

broken image

In addition, Visual Studio’s installer has an option to install Node.js as part of its regular installation in order to support the npm task runners that are built in. Visual Studio is a fantastic IDE (and free for individual use)! It’s been so great that they’ve added modern web dev support in recent years for things like React, Webpack, and more.