开发者

getting node.js working

开发者 https://www.devze.com 2023-01-06 00:02 出处:网络
So I\'m following: http://giantflyingsaucer.com/blog/?p=8开发者_开发问答94 and installing node.js.

So I'm following:

http://giantflyingsaucer.com/blog/?p=8开发者_开发问答94

and installing node.js.

I got up to the part with sudo make install.

It works, then it says to create a js file.

What I don't understand is where I put the sayhello.js?


Node.js looks at least for the programmer more like a interpreter. Thus, you can place your sayhello.js whereever you want and run it by executing node sayhello.js.

However, you might consider using external modules. Then you must check that they are set by full path or the relative path can be resolved from the location you execute node in.

0

精彩评论

暂无评论...
验证码 换一张
取 消