Open Samridhi-98 opened 2 years ago
Can you please provide more information about your environment? cygwin, git-bash, WSL or other?
Can you please provide more information about your environment? cygwin, git-bash, WSL or other?
git-bash and Powershell I tried running the above command in both and got the same error.
Your previous image has some more information
You may be the only person with this setup that could properly reproduce and fix this bug.
I found this issue that could be related. But my bet would be with the escaping slash.
Please try this change in package.json
- "test:packagelint": "lerna exec npmPkgJsonLint -- --quiet -c \$LERNA_ROOT_PATH/.npmpackagejsonlintrc.json .",
+ "test:packagelint": "lerna exec npmPkgJsonLint -- --quiet -c \"${LERNA_ROOT_PATH}\"/.npmpackagejsonlintrc.json .",
or this
- "test:packagelint": "lerna exec npmPkgJsonLint -- --quiet -c \$LERNA_ROOT_PATH/.npmpackagejsonlintrc.json .",
+ "test:packagelint": "lerna exec npmPkgJsonLint -- --quiet -c '${LERNA_ROOT_PATH}/.npmpackagejsonlintrc.json' .",
and run:
npm run test:packagelint
@hugosenari still getting the same error. Couldn't find the path. Is it node version issue? (mine is 14.17.4)
The problem is with window's file path which is different from that of Linux, which I guess you guys have already figured out.
So, now the solution would be (at least what I think is) to use WSL2
for running your project in windows.
The steps are simple
mnt
directory) and then run the project with the cmd provided. Following is the link on how to install WSL2 and node. How to install WSL2 How setup node inside WSL2
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior. MVCE would definitely help.
npm test
from root inWindows 10 pro
Screenshot