简体   繁体   English

如何为Node.js Ubuntu 14.04设置npm live-server

[英]How to set up npm live-server for Node.js Ubuntu 14.04

I've just getting into programming and I was told to try and use node.js for JavaScript. 我刚开始编程,却被告知尝试将node.js用于JavaScript。 I've been watching this tutorial here and he seems to have a tab open called local host where he is allowed to code. 我一直在这里观看本教程,他似乎打开了一个名为“本地主机”的选项卡,并允许在其中进行编码。 I have no idea how to do this. 我不知道该怎么做。 I guess hes using a live-server? 我猜他在使用实时服务器吗? I've tried going online here to set it up but to no avail. 我试着去网上这里来设置它,但无济于事。 I am using Ubuntu 14.04. 我正在使用Ubuntu 14.04。

At the beginning of the video he explains how to tell your browser to show that javascript console where you can interactively play around - its F12 or ctrl+shift+J on ubuntu ... you can download Node.js here 在视频的开头,他解释了如何告诉浏览器显示可在其中进行交互播放的javascript控制台-Funtu上的F12或ctrl + shift + J ...您可以在此处下载Node.js

Once you have installed Node.js then from a linux/OSX terminal type : 一旦安装了Node.js,然后从linux / OSX终端输入:

node  

which launches node in an interactive javascript execution command line mode ... Behind the facade of chrome browser or node is the V8 engine which is actually where javascript gets compiled and executed 它以交互式javascript执行命令行模式启动节点。在chrome浏览器或节点的外观后面是V8引擎,实际上是在其中编译和执行javascript的地方

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM