Node.js Error:cannot Find module ' extend ', run Linaro program error on CC-A80 Ubuntu node.js __js

Source: Internet
Author: User

Today, I tried to run the Node.js program on the CC-A80 Ubuntu Linaro, the result is error Error:cannot find module ' extend '.

The error message is as follows:

1 2 3 4, 5 6 7 8 9 10 11 12 13 14 15 module.js:339 throw err; ^ Error:cannot Find module ' extend ' at Function.module._resolvefilename (module.js:337:15) at Function.module . _load (module.js:287:25) at Module.require (module.js:366:17) in require (MODULE.JS:385:17) at object.< Anonymous> (/data/node_modules/request/index.js:17:29) at Module._compile (module.js:435:26) at Object.Module . _extensions. JS (module.js:442:10) at Module.load (module.js:356:32) in Function.module._load (Module.js:311:12) at Modu Le.require (MODULE.JS:366:17)

I look a bit overwhelmed, because the environment is no problem.

A simple look at the code, think about it, may be a few days before installing the request module, in addition to the point of the situation, installation of the problem.

So reload the request module

NPM Remove Request

NPM Install request

Run after installation, OK.

This article starts with Cango's Ink Technology blog (blog.mojijs.com).
This address is http://blog.mojijs.com/post/163.html (blog.mojijs.com/post/163.html). More highlights please pay attention to the original.

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.