question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lerna error while testing

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior. MVCE would definitely help.

  • While running npm test from root in Windows 10 pro

Screenshot

image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Samridhi-98commented, Feb 14, 2022

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.

0reactions
ritik307commented, Feb 16, 2022

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

  1. Install WSL2 in your windows
  2. Install node inside your WSL2.
  3. Locate to the directory where your project is (probably inside the 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

`lerna run test` echoes "Error: no test specified" · Issue #1142
lerna run test seems to run in npm modules which have no test script in their package.json . Steps to Reproduce (for bugs)....
Read more >
Troubleshooting
This document contains solutions for certain issues our users encountered in the past while using Lerna. Bootstrap Command​. Error when using yarn as...
Read more >
Detect error while using local lerna package
One of our projects is using Lerna for managing npm packages. Black Duck Detect is failing on that project. The error: Not Extractable:...
Read more >
mjasso/lerna-test - npm Package Health Analysis
An important project maintenance signal to consider for @mjasso/lerna-test is that it hasn't seen any new versions released to npm in the past...
Read more >
@lerna/validation-error | Yarn - Package Manager
6.2.0 (2022-12-13). Bug Fixes. core: more detailed error message when version cannot be found (#3424 (b729b0c); schema: add the other ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found