admin管理员组文章数量:1023803
im still very new to nodeJS and i have run into a problem.
whenever i try to log something from my aplication to the terminal using " node [application name]" nothing happen please help if you can, thank you!
please keep in mind that it was working before so i broke it
i have already tried to use another terminal (bash) and nothing happend; but for some reason when i use nodemon it works im very confused so any thing will be helpful
CODE:
console.log('hello world...');
TERMINAL:
PS C:\Users\nsc\Desktop\npm> node app
PS C:\Users\nsc\Desktop\npm>
im still very new to nodeJS and i have run into a problem.
whenever i try to log something from my aplication to the terminal using " node [application name]" nothing happen please help if you can, thank you!
please keep in mind that it was working before so i broke it
i have already tried to use another terminal (bash) and nothing happend; but for some reason when i use nodemon it works im very confused so any thing will be helpful
CODE:
console.log('hello world...');
TERMINAL:
PS C:\Users\nsc\Desktop\npm> node app
PS C:\Users\nsc\Desktop\npm>
Share
Improve this question
edited Aug 22, 2021 at 10:11
Thatkookooguy
7,0421 gold badge33 silver badges59 bronze badges
asked Aug 22, 2021 at 10:07
ArabDROPSArabDROPS
1011 silver badge7 bronze badges
3
- hey ArabDROPS! Wele! is there any more information you can share? maybe explain what you did that broke the normal behavior? it's hard to help you fix this with only the information you provided. thanks! – Thatkookooguy Commented Aug 22, 2021 at 10:10
- Seems odd. I can see your using powershell, does it do the same using standard cmd shell?. If so it's maybe some funky powershell settings rather than node.. – Keith Commented Aug 22, 2021 at 10:37
- Did you save your file? – Nick Parsons Commented Aug 22, 2021 at 10:55
2 Answers
Reset to default 5turned out that the problem was i did not save the file, if your having the same issue please try to save before runing.
run the file with .js extensions your run only with filename node app
try to run node app.js
im still very new to nodeJS and i have run into a problem.
whenever i try to log something from my aplication to the terminal using " node [application name]" nothing happen please help if you can, thank you!
please keep in mind that it was working before so i broke it
i have already tried to use another terminal (bash) and nothing happend; but for some reason when i use nodemon it works im very confused so any thing will be helpful
CODE:
console.log('hello world...');
TERMINAL:
PS C:\Users\nsc\Desktop\npm> node app
PS C:\Users\nsc\Desktop\npm>
im still very new to nodeJS and i have run into a problem.
whenever i try to log something from my aplication to the terminal using " node [application name]" nothing happen please help if you can, thank you!
please keep in mind that it was working before so i broke it
i have already tried to use another terminal (bash) and nothing happend; but for some reason when i use nodemon it works im very confused so any thing will be helpful
CODE:
console.log('hello world...');
TERMINAL:
PS C:\Users\nsc\Desktop\npm> node app
PS C:\Users\nsc\Desktop\npm>
Share
Improve this question
edited Aug 22, 2021 at 10:11
Thatkookooguy
7,0421 gold badge33 silver badges59 bronze badges
asked Aug 22, 2021 at 10:07
ArabDROPSArabDROPS
1011 silver badge7 bronze badges
3
- hey ArabDROPS! Wele! is there any more information you can share? maybe explain what you did that broke the normal behavior? it's hard to help you fix this with only the information you provided. thanks! – Thatkookooguy Commented Aug 22, 2021 at 10:10
- Seems odd. I can see your using powershell, does it do the same using standard cmd shell?. If so it's maybe some funky powershell settings rather than node.. – Keith Commented Aug 22, 2021 at 10:37
- Did you save your file? – Nick Parsons Commented Aug 22, 2021 at 10:55
2 Answers
Reset to default 5turned out that the problem was i did not save the file, if your having the same issue please try to save before runing.
run the file with .js extensions your run only with filename node app
try to run node app.js
本文标签: javascriptconsolelog not displaying anything in the terminal (node JS)Stack Overflow
版权声明:本文标题:javascript - console.log not displaying anything in the terminal (node JS) - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745588626a2157752.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论