Node. js development-exceptions caused by adding the mongoose Module

Source: Internet
Author: User

Use vs2013 and node. the js tools plug-in generates an empty Express project, adds the mongoose module to the project, and adds the mongoose module to the app. write code in the js file to connect to the MongoDB database and run the project directly in vs2013. An Exception Error occurs: Cannot find module '.. /build/Release/kerberos '. If you run this project directly using the command line node app. js, everything is normal. This may be a problem unique to vs2013. I did not go into the specific cause.

In visual studio 2013, set the following method to ignore this exception:

First, go to the menu "debug" --> "exception"

Click "add" to add a Node. js Exceptions type named "Error (MODULE_NOT_FOUND )"

Then, remove the "Trigger" and click "OK ".

Success!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.