How do I create and activate a virtual environment in WebStorm?

Coming from PyCharm providing easy virtual environment creation, I can't see how to create & activate a virtual environment for Node.js development within WebStorm. Please give me step by step instructions on how to do this.

0
1 comment

There is no such feature in WebStorm. Moreover, I'm not sure what this means for Node.js development - while Python supports it natively via venv, there is no such feature in Node.js. If your intention is to have all frameworks, etc. installed locally in your project, just don't use npm install -g, use npm install. CLI utilities will be installed in node_modules/.bin folder. For convenience it's also added to PATH for your npm scripts, so you can just call them without prefix

 

There is also the https://github.com/ekalinin/nodeenv package, you can give it a try

0

Please sign in to leave a comment.