node. JS could not find the XXX module solution

Source: Internet
Author: User

node. JS could not find a workaround for this module of XXX.
Come in order.
1. Check if the spelling is wrong.
2. This module is written by itself, yes. Check to see if the path is correct.

3. If the module is imported. Use the NPM List command to output this module. If not, install it (Nodejs in the Total folder, enter NPM install xxxx)
4. Also note that the Global module installation directory defaults to users/user/node_modules below. And your project reads the module is your installation directory (it is possible that the two directories are different). So sometimes, there is no module, after the installation, or continue to report the error of the module can not be found

The way to do this is to use NPM to output the path of your installation module, to find out the current project's read path, copy the corresponding module in the past

node. JS could not find the XXX module solution

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.