[Front-end technology] When nodejs installs extension plug-ins, it always reports the enoent solution, nodejsenoent

Source: Internet
Author: User

[Front-end technology] When nodejs installs extension plug-ins, it always reports the enoent solution, nodejsenoent

When npm install is used to install the extension under a directory, the system always prompts "npm install Error: ENOENT, no such file or directory;

In the past, the installation process was smooth, but this was not the case. However, if this happens, you will be able to get upset. Therefore, you may find a solution and think it is necessary to summarize it.

Solution 1:

Switch to nodejs \ node_modules \ npm under the nodejs file in the command line and execute npm install a plug-in;

Solution 2:

You can use the npm init-f command to generate package. json. For fields missing in package. json, refer to the template.

Package. json is filled. The value of the field in package. json can be "", which is the dependency field. During installation, run npm install koa-save

It is automatically filled in the file.

 

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.