npm install命令运行中出现Error: ENOENT: no such file or directory解决方法
在开发过程中执行下面脚本出现错误
npm install --save ng-bootstrap/ng-bootstrap
出现
Error: ENOENT: no such file or directory, open 'D:\aa\node_modules\ng-bootstrap\.git\hooks\commit-msg'at Object.fs.openSync (fs.js:653:18)at Object.fs.writeFileSync (fs.js:1300:33)at Object.<anonymous> (D:\projects\testb\node_modules\ng-bootstrap\misc\validate-commit.install.js:10:6)at Module._compile (module.js:624:30)at Object.Module._extensions..js (module.js:635:10)at Module.load (module.js:545:32)at tryModuleLoad (module.js:508:12)at Function.Module._load (module.js:500:3)at Function.Module.runMain (module.js:665:10)at startup (bootstrap_node.js:201:16)
采用了多种方法包括清除cache都没有办法解决,后来采用直接在package.json直接添加
==dependencies==中增加==”@ng-bootstrap/ng-bootstrap”: “^1.0.0-beta.5”==,添加好之后再执行
npm install
就解决些问题
npm install命令运行中出现Error: ENOENT: no such file or directory解决方法相关推荐
- GitBook运行报错 - Error: ENOENT: no such file or directory, stat
换一台电脑打开GitBook项目居然运行不了,gitbook serve和gitbook build都报错. Error: ENOENT: no such file or directory, sta ...
- python中出现[Errno 2] No such file or directory解决方法之一
在我学习python文件部分的过程中 编写如下代码时: 会出现跳出如下错误 而我在该目录下的确有此文件 我查了很多资料都还是没有解决,最后我斥巨资(15¥)才得以解决,在这里我分享给大家 其实在这里主 ...
- npm error enoent:no such file or directory...are-we-there-yet ; package.json文件和node_modules模相互转化
vue-cli项目一段时间没有变动,几个星期后继续编辑安装 npm install vue-skeleton-webpack-plugin 插件时报错 npm error enoent:no suc ...
- 解决Error: ENOENT: no such file or directory, scandir
解决Error: ENOENT: no such file or directory, scandir 'xxx\node-sass\vendor' 前端项目持续部署打包中出现一个奇怪的问题,记录一下 ...
- node安装不能正常使用 Error: ENOENT: no such file or directory, mkdir ‘D:\‘
Error: ENOENT: no such file or directory, mkdir 'D:' 安装好node之后,运行npm命令总是会出现这样的报错 最近新电脑安装node发现莫名其妙 后 ...
- Angular报错-Error: ENOENT: no such file or directory, scandir '/Users/echo_hx/node_modules'
2019-11-07 更新 我知道为啥报错了,自我好好反省一下!!! 所以,Mac的终端,不能用简写的命令,哭泣... 不过下面的,就可以看作安装卸载@angular/cli了 在全局安装angu ...
- vue启动报错Module build failed: Error: ENOENT: no such file or directory
vue启动项目报错,一大坨 如下 Module build failed: Error: ENOENT: no such file or directory, scandir '/Users/son ...
- electron 打包后启动应用报错:Error: ENOENT: no such file or directory, open ‘xxx/manifest.json‘‘
使用 electron-builder 打包后启动报错: Reading /xxx/manifest.json failed. Error: ENOENT: no such file or direc ...
- 解决Error: ENOENT: no such file or directory, scandir 安装node-sass报错
webpack打包时出现 Error: ENOENT: no such file or directory, scandir 解决方案是执行以下方法: npm rebuild node-sass 可是 ...
最新文章
- Go 知识点(11) — goroutine 泄露、设置子协程退出条件
- 中国第一家交货的自动驾驶独角兽:完全自主泊车,千元级硬件成本
- 战网AI危机!AlphaStar匿名潜入星际2天梯PK,进化版让人类玩家瑟瑟发抖
- 利用Jenkins实现JavaWeb项目的自动化部署
- 英语笔记:写作:Recreational activities
- c语言入门百度贴吧,c语言入门者
- 数据可视化工具在教学中的意义
- UGUI的Canvas
- Java httpClient 发送http请求
- 《离散数学及其应用》阅读感想(转载)
- mysql误删除数据恢复_mysql误删除数据恢复
- 第一性原理分子动力学(AIMD)结果分析教程
- ClassForName应用于工厂模式
- HTML5基础与Meta http-equiv属性详解
- Java获取当前电脑的ip地址
- TcaplusDBx 黎明觉醒|一路相伴,不负期待
- 编码格式问题 错误:JSON parse error: Invalid UTF-8 middle byte 0x3f
- ECMAScript6面对大于0xFFFF的Unicode字符如何正确返回长度
- java解析蓝奏云直连(解析真正文件地址)
- 如何避免拼多多售后?拼多多售后有哪些规则?
热门文章
- INSERT FIRST和INSERT ALL
- 手机 html 全屏,手机投屏开启满屏模式
- python怎么安装jieba库这个模块 No module named ‘jieba‘ python3.7
- 蓝桥杯单片机led指示
- 单片机如何发出类似和弦的声音
- 第七章第三十六题(游戏:八皇后问题)(Game: Eight Queens)
- 自制linux桌面环境,四招教你打造轻型Linux桌面环境
- 从那堆代码中,你懂得了哪些道理?
- 写在2015农历年的最后以及2016农历年的开始
- 谈谈红楼梦(第16-18回)