在 WebStorm 中设置 Node.js 环境变量 [英] Set Node.js environment variables in WebStorm

查看:51
本文介绍了在 WebStorm 中设置 Node.js 环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 JetBrains 的 WebStorm 官方 Node 插件(以及他们的其他 IDE)运行 Node.js 应用程序时,有什么方法可以设置环境变量?

Is there any way to set environment variables when running a Node.js app using JetBrains' official Node plugin for WebStorm (and their other IDEs as well)?

推荐答案

不,WebStorm 不可能,环境变量应该是 在你的系统中定义.

No, it's not possible from WebStorm, environment variables should be defined in your system.

更新:在新版本中,可以在运行/调试配置中设置环境变量.

UPDATE: in the new versions it's possible to set environment variables in the Run/Debug configuration.

这篇关于在 WebStorm 中设置 Node.js 环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆