npm-watch fails with ENOENT, unhandled error event in a hoisted lerna repository #83
Closed
Description
I have a lerna monorepo in hoisted setup. npm-watch is installed in one of the child projects as devDependency
When running npm-watch the nodemon binary is not found
The problem is that:
$cwd/node_modules/.bin
does not contain the binary but $cwd/../node_modules/.bin
does. Experimenting a little bit i think the culprit is child_process.spawn
which not recurses the node_modules directories. child_process.exec
finds the binary
As a workaround nodemon can be installed globaly.
npm-watch version: 0.9.0
node version: 12.22.1
Metadata
Assignees
Labels
No labels