在我的fish / cygwin shell上使用Node.js

问题描述 投票:0回答:1

我正在学习一门课程和学习过程,如果这很简单,那么道歉!

我已经通过cygwin安装程序在cygwin上安装了fish shell作为选项。我也安装了node(和npm)。

但是,在shell中键入“node”时,它只是挂起而不显示下一行使用节点而不是?

任何帮助实现这项工作将非常感谢!

Please see the image of my terminal response here

javascript node.js shell cygwin fish
1个回答
0
投票

node独自运行会让你成为一名翻译。

ctrl c是否打印此消息?

(To exit, press ^C again or type .exit)

如果你这样做怎么办:

node -e 'console.log("foo")'

我明白了:

node -e 'console.log("foo")' foo

如果你刚开始打字怎么样?

node

[按回车]

输入:

console.log('foo')

[按回车]

© www.soinside.com 2019 - 2024. All rights reserved.