In order to demonstrate my problem, i’ve created a minimal reproduction respository which you can clone from https://github.com/sqal/playground1 and here’s my issue
Steps to reproduce
- Clone repo
- Navigate to directory apps/app1 and run
npm run serve
What is expected?
I expect executable script from the package @project/service located in
packages/service to run correctly
What is actually happening?
I get this error instead:
's' is not recognized as an internal or external command,
My understanding is that the script does not work currently not because there’s no executable script
s in the
apps/app1/node_modules/.bin, but why npm did not create this file during npm install? is it because @project/service is listed the root package.json and is hoisted in the root node_modules (which is what I want btw)? I also tried to run this script using a relative path to the root node_modules like this:
But this time, I got another error
> ../../node_modules/.bin/s '..' is not recognized as an internal or external command,
which is very weird, because path is correct and the script is definitely in root node_modules/.bin folder. I would appreciate if someone could give more details on why I can’t execute this
serve command and what is the right way to fix it. Thanks.