"Front-end Technology" Nodejs install extension, always error enoent solution

Source: Internet
Author: User

When using the NPM install extension in a directory, you are always prompted to "NPM install error:enoent,no such file or directory;

It used to be a smooth installation, and it didn't happen. But this situation, can be distressed, so various find solutions, feel it necessary to sum up

Workaround 1:

Perform a plugin for NPM install after switching to NODEJS\NODE_MODULES\NPM under install Nodejs file on the command line;

Workaround 2:

可以使用 npm init -f命令生成package.json,package.json中缺少的字段可以参照模板

package.json进行填充,package.json中的字段的值可以为"",依赖项的字段,在安装时通过npm install koa -save

就会自动填充到文件中。

"Front-end Technology" Nodejs install extension, always error enoent 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.