Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cause Analysis of error module_not_found of npm installation Module

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail the analysis of the reasons for the error module_not_found of the npm installation module. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

What is wrong with the npm installation module module_not_found? Some time ago, node was reinstalled after something went wrong with the computer. The previously installed program can be used normally with node, and an error is reported when installing a new module.

Npm installation module error module_not_found description

Looked at the log file, it is not very clear what is going on, Baidu for a long time can not find the corresponding problem, can only post, help the god. The content of log file is as follows

0infoitworkedifitendswithok

1verbosecli ['D:\\ ProgramFiles\\ nodejs\\ node.exe'

1verbosecli'D:\\ ProgramFiles\\ nodejs\\ node_modules\\ npm\ bin\\ npm-cli.js'

1 verboseclimated installation'

4verbosenpm-session17043fe4b79ee516

5verbosestackErrorfrog Cannotfindmoduleencoding synchronous utilerytypes'

5verbosestackatFunction.Module._resolveFilename (module.js:536:15)

5verbosestackatFunction.Module._load (module.js:466:25)

5verbosestackatModule.require (module.js:579:17)

5verbosestackatrequire (internal/module.js:11:18)

5verbosestackatevalmachine.:31:26

5verbosestackatObject. (d:\ ProgramFiles\ nodejs\ node_modules\ npm\ node_modules\ cmd-shim\ node_modules\ graceful-fs\ fs.js:11:1)

5verbosestackatModule._compile (module.js:635:30)

5verbosestackatObject.Module._extensions..js (module.js:646:10)

5verbosestackatModule.load (module.js:554:32)

5verbosestackattryModuleLoad (module.js:497:12)

5verbosestackatFunction.Module._load (module.js:489:3)

5verbosestackatModule.require (module.js:579:17)

5verbosestackatrequire (internal/module.js:11:18)

5verbosestackatObject. (d:\ ProgramFiles\ nodejs\ node_modules\ npm\ node_modules\ cmd-shim\ node_modules\ graceful-fs\ graceful-fs.js:3:27)

5verbosestackatModule._compile (module.js:635:30)

Module_not_found solution for error reporting of npm installation Module

It should be due to previous versions of node and npm files or caches! As an administrator, find the npm location, delete the npm folder and npm-cache, then find the nodejs file location, delete the files inside, and then download and install node.js again.

On the "npm installation module error module_not_found reason analysis" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report