npm执行install报错ENOENT没有文件或目录 May 20, 2021 / 1 min read View more blogs with the tag npm Table of Contents #ENOENT #解决方案 遇到 npm 执行命令npm install时报错,ENOENT:No Such Files Or Directories…。删除 node_modules 目录也无法修复。 ENOENT ENOENT 是 Error NO ENTry(或 Error NO ENTity)的缩写,之所以这样缩写是因为 C 的编译器最初不支持超过 8 个字符的符号。 解决方案 可以同时删除 package-lock.json 与 node_modules 目录,再执行npm install。 参考资料 1 参考资料 2