jessety / pm2-installer

Install PM2 offline as a service on Windows or Linux. Mostly designed for Windows.
MIT License
495 stars 50 forks source link

Error: ENOENT: no such file or directory #94

Closed NguyenHoangMinhkkkk closed 11 months ago

NguyenHoangMinhkkkk commented 12 months ago

I get this error when computer restart

| windows server 2022, nodejs 18.17.0 |

Before restart computer: pm2 start ecosystem.config.js => service working like normally pm2 save After restart computer: pm2 ls => the service process show Online status. pm2 logs => show error below, and service not working.

i have no idea about this problem. i need some help. My project is a NestJS App. "node-watch" added to my project by command npm install node-watch

Error: ENOENT: no such file or directory, mkdir 'C:\Users\ADMINI~1\AppData\Local\Temp\2\node-watch-ac59ee406efc3' at Object.mkdirSync (node:fs:1398:3) at TempStack.mkdir (C:\Users\Administrator\myProject\watchman\node_modules\node-watch\lib\has-native-recursive.js:31:10) at hasNativeRecursive (C:\Users\Administrator\myProject\watchman\node_modules\node-watch\lib\has-native-recursive.js:79:9) at Watcher.watchDirectory (C:\Users\Administrator\myProject\watchman\node_modules\node-watch\lib\watch.js:395:3) at watch (C:\Users\Administrator\myProject\watchman\node_modules\node-watch\lib\watch.js:543:13) at WatchFileService.setup (C:\Users\Administrator\myProject\watchman\src\readFile\watchFileService.ts:17:26) at ReadFileModule.onApplicationBootstrap (C:\Users\Administrator\myProject\watchman\src\readFile\readFileModule.ts:24:27) at callModuleBootstrapHook (C:\Users\Administrator\myProject\watchman\node_modules\@nestjs\core\hooks\on-app-bootstrap.hook.js:51:35) at NestApplication.callBootstrapHook (C:\Users\Administrator\myProject\watchman\node_modules\@nestjs\core\nest-application-context.js:244:13) at NestApplication.init (C:\Users\Administrator\myProject\watchman\node_modules\@nestjs\core\nest-application.js:100:9) { errno: -4058, syscall: 'mkdir', code: 'ENOENT', path: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\node-watch-ac59ee406efc3' }