As a result, you can not only run and debug your app with configured Node.js interpreter in Docker but also manage your project dependencies, run tests, and lint your code.Ī remote Node.js interpreter that you configure right in the Node.js run/debug configuration can be used only with this run/debug configuration. In this case you can set the interpreter and the associated package manager as default for your project. 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 in Docker. Node.js interpreters in Docker are configured in the Configure Node.js Remote Interpreter dialog. Make sure the Node.js and Docker required plugins are enabled on the Settings | Plugins page, tab Installed, see Managing plugins for details.ĭownload, install, and configure Docker as described in Docker Remote Node.js interpreter in a Docker container Before you start Ĭlick on the toolbar and select Add Remote from the context menu.Ĭonfigure a remote Node.js interpreter via SSH as described above. The Run/Debug Configuration: Node.js dialog opens.Ĭlick next to the Node interpreter field. In the Edit Configuration dialog that opens, click on the toolbar and select Node.js from the context menu. The default location for npm executable is /usr/local/lib/node_modules/npm.Ĭonfigure a remote Node.js interpreter via SSH in a run/debug configurationįrom the main menu, select Run | Edit Configurations. To do that, specify the location of the package manager in the Package manager field. To use the package manager associated with the new interpreter for managing your project dependencies, set this package manager as default in your project. ![]() PhpStorm automatically uses this interpreter every time you select the Project alias from Node Interpreter lists, for example, when creating run/debug configurations. To set the newly configured interpreter as project default, select it in the list and click OK to return to the Node.js dialog. In the Configure Node.js Remote Interpreter dialog that opens, select SSH.Īlternatively, click and create a new SSH configuration as described in Create SSH configurations.Ĭlick OK to return to the Node.js Interpreters dialog where the new interpreter is added to the list. 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. Configure a remote Node.js interpreter via SSH 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.Ī remote Node.js interpreter that you configure right in the Node.js run/debug configuration can be used only with this run/debug configuration. ![]() Node.js interpreters via SSH are configured in the Configure Node.js Remote Interpreter dialog. For more details about plugins, see Managing plugins.Ĭonfigure access to an SSH server on the target remote host as described in Create SSH configurations and make sure this server is running. In the search field, type FTP/SFTP/WebDAV Connectivity. Press Control+Alt+S to open the IDE settings and then select Plugins. Make sure the FTP/SFTP/WebDAV Connectivity plugin is enabled in the settings. Install and enable the Node.js Remote Interpreter plugin on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace. Remote Node.js interpreter on a host accessible through SSH connection Before you start ![]() 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. 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 in a remote environment. Remote Node.js interpreters are configured in the Configure Node.js Remote Interpreter dialog. In PhpStorm, you need to configure a remote Node.js interpreter when you want to develop, test, lint, run and debug your application on Node.js installed on a remote host or in a virtual environment. Local interpreters are configured on the Node.js page, see Configuring a local Node.js interpreter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |