跑vue项目的时候,报错 ENOENT: no such file or directory(This is related to npm not being able to find a file)
2019-05-23 10:28
3339 查看
在跑项目的时候,报错ENOENT: no such file or directory(This is related to npm not being able to find a file)和This is probably not a problem with npm,there is likely additional logging output above
出现这种错误的原因可能有两种:
1、可能是依赖包出现了问题,即node_modules里面的某个依赖可能没有被程序识别出来。解决办法:
在文件夹中找到工程目录,然后找到如下的文件夹然后强制删除,之后打开PowerShell窗口,重新执行 npm install 命令。
2、也可能是版本更新的原因。解决方法:
执行完 npm install 命令后,再执行 npm i -D webpack-dev-server@2.9.7 命令。
相关文章推荐
- 问题解决:psql: could not connect to server: No such file or directory Is the server running
- Android java.io.FileNotFoundException on Android, open failed: ENOENT (No such file or directory)
- npm WARN enoent ENOENT: no such file or directory, open 'C:\Program Files\nodejs \package.json'
- npm install命令运行中出现Error: ENOENT: no such file or directory解决方法
- Error: ENOENT: no such file or directory, uv_cwd Error: Cannot find module
- 解决Error: ENOENT: no such file or directory, scandir 'D:\IdeaWork\code-front-jet\node_modules\.npminstall\node-sass\3.7.0\node-sass\vendor'
- Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory
- pip安装出现Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '
- 解决Error: ENOENT: no such file or directory, scandir 'D:\IdeaWork\code-front-jet\node_modules\.npmins
- mac os npm WARN saveError ENOENT: no such file or directory, open '/Users/summer/package.json'
- psql: could not connect to server: No such file or directory&&PGHOST
- Error: Unable to connect to xend: No such file or directory. Is xend running
- Apache 不能启动,出现 No such file or directory: make_sock: could not bind to port 8080 错误
- npm WARN saveError ENOENT: no such file or directory解决
- 解决Error: ENOENT: no such file or directory, scandir 'D:\IdeaWork\code-front-jet\node_modules\.npmins
- npm WARN enoent ENOENT: no such file or directory, open 'E:\Program Files\nodejs \package.json' npm
- mysql could not read contents of failed to open no such file or directory
- npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\package.json'
- createdb: could not connect to database postgres: could not connect to server: No such file or directory