Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Created Feature: Loading custom modules in the Interactive Window [1364]

$
0
0
Hi,

The interactive window is a very nice feature. It's great that I'm able to test out NodeJS code on the fly.

I have a couple of questions:

* Is it possible to associate the interactive window with a particular project in Visual Studio? This would permit loading custom modules defined in that project.
* How do I load a module installed via npm? At present this works:

```JavaScript
var x = require('fs');
```

but this doesn't
```JavaScript
var x = require('htmlParser2')
Error: Cannot find module 'htmlParser2'
```
NB: I have installed htmlParser2 in one of the NTVS projects, but not all of them.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>