原因

查了一下,是linux系统的限制导致这个报错了,需要设置一下:fs.inotify.max_user_watches 这个参数。

解决方法

执行:vim /etc/sysctl.conf,添加如下内容:

fs.inotify.max_user_watches=524288

输入:wq

在命令行执行:sysctl -p

重新执行:npm run serve,没有报错了。

npm运行报错:Error: ENOSPC: System limit for number of file watchers reached相关推荐

  1. 启动vue项目报错:ENOSPC: System limit for number of file watchers reached, watch

    解决办法: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl ...

  2. Error: ENOSPC: System limit for number of file watchers reached, watch'所在文件路径'

    Error: ENOSPC: System limit for number of file watchers reached, watch'所在文件路径' vue工程在 deepin15.11 系统 ...

  3. reactjs npm start运行报错:Error: ENOSPC: System limit for number of file watchers reached

    **解决方法**执行:vim /etc/sysctl.conf,添加如下内容:fs.inotify.max_user_watches=524288输入:wq在命令行执行:sysctl -p重新执行:n ...

  4. Error: ENOSPC: System limit for number of file watchers reached

    react-native 使用yarn 管理工程,yarn build是没有问题的,但是在运行yarn start的时候,出现了这个错误 大概的意思就是说系统对文件监控的数量已经到达限制数量了 Ubu ...

  5. 解决System limit for number of file watchers reached

    问题背景 系统: deepin 详情: 在用vue脚手架写项目的时候,用npm run serve启动服务,报错Error: ENOSPC: System limit for number of fi ...

  6. linux 微信开发工具报错:System limit for number of file watchers reached, watch

    在linux 用命令打开微信开发工具的时候,报错:System limit for number of file watchers reached, watch... 解决方案:在终端依次执行一下命令 ...

  7. npm 运行报错“Cannot find module ‘@vue/component-compiler-utils/package.json‘”

    npm 运行报错"Cannot find module '@vue/component-compiler-utils/package.json'"如下: 解决方法:安装@vue/c ...

  8. Intellig idea导入项目第一次运行报错- Error running ‘Application‘: Command line is too long—— 解决方法

    Intellig idea导入项目第一次运行报错 Error running 'Application': Command line is too long. Shorten command line ...

  9. mysql报错-ERROR 1206 (HY000)- The total number of locks exceeds the lock table size-的解决方法

    mysql报错"ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法 问题 ...

最新文章

  1. Java设计模式--使用内部类实现线程安全且懒加载的单例模式
  2. Eclipse反编译插件JadClipse安装及使用
  3. iphone 字符串分隔与组合
  4. 读书:《带人的技术》
  5. 你不知道的接口测试之简单的开始
  6. 修改联通服务器密码,联通的服务器咋设置密码
  7. python判断正负整数_python判断正负数方式
  8. 苹果手机计算机怎么放桌面,iOS13系统的苹果手机中如何重新布局桌面应用
  9. oracle ocp考题,Oracle OCP认证考试题库更新,052新考题整理(带答案)-72
  10. cad卸载工具_装不上也卸不掉,我的CAD仿佛已没救!...(CAD/MAX完美安装工具)...
  11. 初探机器学习之使用讯飞TTS服务实现在线语音合成
  12. linux下制作dos启动u盘启动,在Linux系统下创建FreeDOS可启动U盘
  13. 知乎 ”大家都见过哪些让你虎躯一震的代码?“用户“李晨昊”回答的等价代码
  14. 什么是MTTF、MTBF、MTRF
  15. Android之Manifest文件
  16. 「斐讯」N1-YYF 固件
  17. IO有Buffered IO 和 Direct IO
  18. 计算机过去.现在的技术发展,影像技术与设备的过去,现在与未来
  19. office word复制图片出错
  20. FFmpeg:基础命令

热门文章

  1. 咖啡html代码,HTML5咖啡生成代码动画
  2. 范式青春er,寻找同行的你!
  3. 趣学python3(2)-添加以数字文字形式使用下划线的功能,以提高可读性
  4. mxnet基础到提高(7)--卷积神经网络基础(2)
  5. 【学术相关】新一轮“双一流”名单公布!这些学校上榜
  6. 【Python】怎么用matplotlib画出漂亮的分析图表
  7. 【机器学习】怎样将Embedding融入传统机器学习框架?
  8. 目前最全:52 个深度学习目标检测模型汇总,论文、源码一应俱全!
  9. 从文本分类来看图卷积神经网络
  10. 员外带你读论文:SeqGAN论文分享