![]() ![]() To locate the Node.js executable, open the embedded Terminal ( Alt+F12) and type: In the Node.js interpreter path field, specify the location of the Node.js executable file. Based on this setting, PhpStorm detects the Vagrant host and shows it as a link in the Vagrant Host URL read-only field.īy default, the field shows the current project folder. Technically, it is the folder where the VagrantFile configuration file for the desired environment is located. Specify the Vagrant instance folder that points at the environment you are going to use. In the Configure Node.js Remote Interpreter dialog that opens, select Vagrant. ![]() In the Node.js Interpreters dialog with a list of all the currently configured interpreters, click on the toolbar and select Add Remote from the context menu. Open the Settings dialog ( Control+Alt+S) and go to Languages & Frameworks | Node.js.Ĭlick next to the Node interpreter field. In this case you can set the interpreter and the associated package manager as default for your project.Ī remote Node.js interpreter that you configure right in the Node.js run/debug configuration can be used only with this run/debug configuration. The recommended way is to configure a remote Node.js interpreter in the Settings dialog. You can open this dialog from the Node.js page of the Settings dialog or later, when you create or edit a Node.js run/debug configuration for running or debugging your application on Vagrant. Node.js interpreters in Vagrant environments are configured in the Configure Node.js Remote Interpreter dialog. Open the embedded Terminal ( Alt+F12) and run the following commands:Ĭonfigure a Node.js interpreter in a Vagrant environment To have Node.js executable in your Vagrant environment, you can start with a ready-to-use Vagrant box, for example, jandir/nodejs. VBoxManage.exe or VBoxManage from your Oracle's VirtualBox installation. This should be done automatically by the Vagrant installer. Vagrant.bat or vagrant from your Vagrant installation. Make sure that the parent folders of the following executable files are added to the system PATH variable: For more information, refer to Vagrant: Working with Reproducible Development Environments. Make sure Vagrant and Oracle's VirtualBox are downloaded, installed, and configured on your computer. Install and enable the Vagrant plugin on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace. For more information, refer to Managing plugins. Make sure the JavaScript and TypeScript, JavaScript Debugger, Node.js, and Node.js Remote Interpreter required plugins are enabled on the Settings | Plugins page, tab Installed. With Vagrant, you can quickly bootstrap your Node.js application to run, debug, and profile it from PhpStorm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |