Error: ENOENT: no such file or directory, uv_cwd Error: Cannot find module
new project was deployed to huawei cloud, which is a service provided by express. When it was started with pm2, an error was reported:
initially thought it was express installation error:
Error: Cannot find module 'express'
So multiple installations, various attempts, but it doesn’t work, or even reinstall Node.
later I found that it was fine to start directly with node, so it was fine when I started only one process with pm2. It’s so strange that I started ten projects and didn’t find this kind of problem.
And then I set my sights on
Error: ENOENT: no such file or directory, uv_cwd
The answer, at last, is simply to restart THE PM2
pm2 kill
and then start again:
and then it’s ok to leave work.
Read More:
- NPM installation module encountered enoent: no such file or directory, rename error
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- How to Fix Module build failed: Error: ENOENT: no such file or directory, scandir xxxxxx\node_…
- Error: ENOENT: no such file or directory, mkdir E:\
- Error: enoent: no such file or directory, stat
- Error: enoent: no such file or directory
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / /_ book/gitbook/git
- Syntax Error: Error: ENOENT: no such file or directory, scandir ‘D:
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / / book/gitbook/git
- Error: ENOENT: no such file or directory, open ‘E:\Program Files\nodejs\tmp\upload_38b32f25bc984333c
- Error occurred when Python installed the pocketsphinx module (package): Command‘ swig.exe “Failed: no such file or directory
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- Memtrack: couldn’t load memtrack module (no such file or directory)
- Solve syntax error: unexpected end of file or /bin/bash^m: bad interpeneter: no match file or directory
- Cannot open include file: ‘io.h‘: No such file or directory
- [tools] vscode debug report G + +. Exe no such file or directory fatal error no input files
- No such file or directory
- Solution to error opening trace file: no such file or directory (2) in Android
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- Xcode – pbxcp Error Repair – no such file or directory