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.