lijiarui / lijiarui/pm-msg

pm2 spawn /node_modules/pm2/node_modules/.bin/ts-node ENOENT

Open
#3 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When trying `fork` exec_mode will get the following error
```
pm2 spawn /node_modules/pm2/node_modules/.bin/ts-node ENOENT
```
This is because there isn't `ts-node` under `.bin`, so `spawn` cannot exec.
The reason is that there isn't any package install under pm2, go to `pm2-sendMsg/node_modules/pm2/` and `npm install` also `npm install ts-node` will solve the problem.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using fork exec_mode, then inspect pm2-sendMsg/node_modules/pm2/ and its installed dependencies. Compare the installation state before and after the npm install commands mentioned in the issue; done means the forked process no longer reports the ts-node ENOENT spawn error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.