当前位置:网站首页>【报错】node:internal/modules/cjs/loader:936 【解决方法】
【报错】node:internal/modules/cjs/loader:936 【解决方法】
2022-07-29 02:08:00 【布拉格沃兹基硕德】
1.报错问题
执行完 npm install 之后执行 npm start时,会显示code: 'MODULE_NOT_FOUND'
Error: Cannot find module '~\http-server\bin\http-server'
这说明我们缺少对应的http-server模组,需要下载。
(tips:936错误代码代表缺少非特定的某一模组,可以根据命令行提示的报错,下载相应模组。)
2.解决方法
①删除 npm install 所下载在项目里的 node_modules 文件 (重要!!)
②执行以下操作:
npm install -g http-server
注意:在进行 npm start 操作时,要将目录切换至 项目所在的目录(向上检索能找到package.json)。
即可成功!
边栏推荐
- Source code and display of 18 classic programs in C language vs2019
- 详解JS的四种异步解决方案:回调函数、Promise、Generator、async/await
- [upload picture 2-cropable]
- 九宫格心形拼图小程序源码/带流量主微信小程序源码
- 2022/07/28 学习笔记 (day18) 常用API
- IOT components
- 如果非要在多线程中使用 ArrayList 会发生什么?
- HTTP breakpoint resume and cache problems
- where、having、group by、order by,is null,not in,子查询,delete,日期函数
- 我被这个浏览了 746000 次的问题惊住了
猜你喜欢
6 years of testing experience, teaching you how to test ~ how to control the project
云开发打工人必备上班摸鱼划水微信小程序源码
Talk about the implementation principle of feign
How to use RPA to achieve automatic customer acquisition?
Teach you how to install vscode by hand (with illustrated steps)
Three implementation methods of Servlet
2022/07/28 learning notes (day18) common APIs
Qt编写物联网管理平台48-特色功能设计
FPGA skimming memory (Verilog implementation of ram and FIFO)
Talk about 11 tips for interface performance optimization
随机推荐
Time pit in MySQL driver
When synchronized encounters this thing, there is a big hole, so be careful
HTTP缓存
Stm32f103xx firmware function library-1
NVIDIA-VPI(Vision Programming Interface)
6 years of testing experience, teaching you how to test ~ how to control the project
6年测试经验,教大家测试~如何把控项目
Memories of many years ago
PHP幸运抽奖系统带后台源码
0728~面试题梳理
Shell script quick start-01
Others' happiness
NPM install reports an error: eperm: operation not permitted, rename
Master-slave replication and its principle
Remember error scheduler once Asynceventqueue: dropping event from queue shared causes OOM
Kbxxxxx is not necessarily a patch, but also a description of a solution to a problem
MySQL基本操作和基于MySQL基本操作的综合实例项目
Transform okhttp cache with retrofit
ES6详解 快速上手!
HTTP cache