4 ms·
I was just looking for something like this. How do I load external node modules into the repl? I tried "File->Add module path" but it didn't seem to work for m
by msluyter 11y ago
I was just looking for something like this.
How do I load external node modules into the repl? I tried "File->Add module path" but it didn't seem to work for me. Basically, having done an npm install of lodash somewhere, I want to do
var _ = require('lodash');
in the repl.
- princejwesley 11y agoThis feature is available in version 2. Target release : Nov 2. https://github.com/princejwesley/Mancy/wiki/Features-&-Roadmap-for-version-2 https://github.com/princejwesley/Mancy/wiki/Features-&-Roadm...
- ad1ttya 11y agoYou install lodash globally, and can then use the above line to use the module inside repl..
- jimmyhmiller 11y agoI did the same thing and pointed to a node_modules folder on a project I had. Worked fine for me.