简体   繁体   English

快速网关

[英]Express Gateway

I'm new to node js, I having a issue with express-gateway I have installed node(V 10.0.0), express(V 4.16.3) & express-gateway. 我是Node js的新手,我对express-gateway有问题,我已经安装了node(V 10.0.0),express(V 4.16.3)和express-gateway。

I'm getting an error: D:\\User\\Test\\Express-Gateway>eg -version 'eg' is not recognized as an internal or external command, operable program or batch file. 我收到错误消息:D:\\ User \\ Test \\ Express-Gateway> eg -version'eg'不被识别为内部或外部命令,可操作程序或批处理文件。

as I fire cmd: eg -version or eg express-gateway create 当我启动cmd时:例如-version或express-gateway创建

Thanks in advance. 提前致谢。

In case of a valid installation, you can find a corresponding windows command script (named eg) residing in your node installation folder (eg: C:\\Program Files\\nodejs\\eg). 如果安装有效,则可以在节点安装文件夹(例如:C:\\ Program Files \\ nodejs \\ eg)中找到对应的Windows命令脚本(命名为)。 Next the windows environment variable PATH has to contain the above mentioned path (in order to check this just run PATH in cmd shell => this will print out the value of PATH, which is a list of file paths seperated by semi colons). 接下来,Windows环境变量PATH必须包含上述路径(为了检查此路径,只需在cmd shell中运行PATH =>,这将打印出PATH的值,该值是用半冒号分隔的文件路径的列表)。 If the node.js entry is missing, you can add the path by updating the variable manually. 如果缺少node.js条目,则可以通过手动更新变量来添加路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM