Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 ubuntu 上安装了 nodejs。
username@username-VirtualBox:~$ cd node username@username-VirtualBox:~/node$ node app.js
如果我在我的代码中犯了错误,那么它会向我响应错误,但是当我的代码正在运行时,它不会响应我任何东西。就像人们已经表明“在 127.0.0.1230 上运行”一样。
我怎样才能让它工作。
Here is an app.js that will show running on 127.0.0.1230:
running on 127.0.0.1230
console.log( 'running on 127.0.0.1230' );
When you run it like this: node app.js, you get running on 127.0.0.1230.
node app.js
console.log logs something to the console.
console.log