簡體   English   中英

如何在 atom 中運行 js? 保存文件時出現 bash 錯誤

[英]how do I run js in atom? I get a bash error when saving the file

我正在學習 javascript 並嘗試在 atom 中運行我的代碼。 我已經安裝了 node.js 但是當我保存文件時,我得到:

bash: -c: line 0: unexpected EOF while looking for matching `''
bash: -c: line 1: syntax error: unexpected end of file
[Finished in 0.137s]

我將文件保存為 learning.js 在我的桌面上。 抱歉,如果這很模糊

node <filename.js>

您需要調用 node node learning.js之類的節點,而不是調用 bash。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM