Node.js NODE_PATH环境变量 [英] Node.js NODE_PATH environment variable

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

问题描述

在开发过程中,我习惯使用 WebStorm node_path =。环境变量。我在项目设置的启动中设置了一个变量。现在我想尝试在服务器上运行该项目,但不知道如何在那里设置这个变量。帮助解决问题!

During development I used to WebStorm node_path =. environment variable. I have set up a variable in the launch of the project settings. Now I want to try to run the project on the server, but do not know how to set this variable there. Help solve the problem!

推荐答案

假设它是UNIX或Mac OS X服务器,请使用 export NODE_PATH = 并附加您想要的路径。

Assuming it's a UNIX or Mac OS X server, use export NODE_PATH= and append the path you want.

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

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