简体   繁体   中英

How to run node.js applications locally for development

I am new to node.js ,today I joined in another team they are working with node.js,backbone.js,marionette.js and sqlserver .I have an idea about backbone,Marionette but I never work on node.js .They asked me to clone the git repository,As per their suggestion I installed node.js .

在此处输入图片说明

After cloning the repository,I got the files just in the following way.

在此处输入图片说明

I opened node_modules folder,It has nearly 10 sub-folders are there.

在此处输入图片说明

node-sqlserver doesn't have any files inside.might be because of that I am getting the following error while server running time.

I ran the server with the following command

node server.js local

getting the following error

在此处输入图片说明

I don't know,why I am getting.can anyone help me.

Thanks.

You need to install all the dependent modules through npm install , In your case, you need to install node-sqlserver .

npm install node-sqlserver

Generally your source code will be having a package.json . This file specifies all the dependent modules required to run the application, but here this file is missing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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