Quick tip: npm or typings not found?

While setting up .NET Core with Angular and TypeScript I kept getting errors that npm could not be found, so I could not install typings. When using the package.json from your project in Visual Studio it’ll work because Visual Studio¬†adds some directories to the PATH variable.

When opening the output window in VS2015 (set Show output from to Bower/npm), at the start it shows

We just need to make sure we these paths are set in our command line.

Custom shortcut

I’ve created the following file called DevCmd.bat;

And then created a shortcut with the following target:

And the ‘Start in’ field was set to my project directory. Now you can double click DevPrompt and get a proper development console ready for use.



Leave a comment

Your email address will not be published. Required fields are marked *