Game Development Reference
In-Depth Information
Figure 8-7. Running NPM from the command line will pull up help.
This will run you through all the commands you can use with NPM ( Figure 8-7 ). Now that
we see that NPM is working, I'm just going to go over a few of the basic setup commands I
used for my own projects.
NOTE
On a side note, if you are on Windows and have GitBash installed you can use that in-
stead of the command prompt. This is incredibly helpful for people like me who come
from a Unix background so you can still continue to use all the commands you are used
to.
So, once you are in a project, you are going to want to set up a file to keep track of all the
modules your project needs. To do this just CD into your project's directory and type the fol-
lowing:
> npm init
This will start a wizard to create a configuration file to store all of your modules. Simply
walk through the setup questions ( Figure 8-8 ).
Search WWH ::




Custom Search