Bender.js:“bender服务器运行”命令在目录中打开bender.js配置文件,而不是启动bender.js服务器 [英] Bender.js: "bender server run" command opens the bender.js config file in directory instead of starting bender.js server

查看:89
本文介绍了Bender.js:“bender服务器运行”命令在目录中打开bender.js配置文件,而不是启动bender.js服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是bender.js的新手,我正在尝试运行示例项目:
https://github.com/benderjs/benderjs-example-project
完成安装步骤后,
我无法访问bender.js服务器:

I am new to bender.js and I am trying to run the example project at: https://github.com/benderjs/benderjs-example-project After going through the installation steps, I am unable to access bender.js server at:

http://localhost:1030

我已经安装了bender.js以及示例项目中陈述的所有依赖项。

I have installed bender.js and all the dependencies stated in the example project.

推荐答案

这是由于从命令提示符执行.js。事实证明,Windows使用WSH或与文件扩展名相关联的默认程序(在我的情况下为记事本)执行.js文件。
从PowerShell或Git Shell或任何其他基于UNIX的shell执行相同的脚本应该可以解决问题。

This was due to executing the ".js" from the command prompt. As it turns out, Windows executes ".js" files with WSH or the default program(notepad in my case) associated with the file extension. Executing the same script from a PowerShell or Git Shell or any other UNIX based shells should solve the issue.

这篇关于Bender.js:“bender服务器运行”命令在目录中打开bender.js配置文件,而不是启动bender.js服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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