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.

Bug: When running npm run format:fix it fails

See original GitHub issue

When I run npm run format:fix I get the following error.

$ npm run format:fix

> @machinelabs/client@0.30.2 format:fix machinelabs\client
> npm run format:base -- --write


> @machinelabs/client@0.30.2 format:base machinelabs\client
> npm run prettier -- '{src,e2e}/**/*{.ts,.js,.json,.css,.scss}' "--write"


> @machinelabs/client@0.30.2 prettier machinelabs\client
> prettier --config ../.prettierrc --ignore-path ../.prettierignore "'{src,e2e}/**/*{.ts,.js,.json,.css,.scss}'" "--write"

[error] No matching files. Patterns tried: '{src,e2e}/**/*{.ts,.js,.json,.css,.scss}' !**/node_modules/** !./node_modules/**
npm ERR! code ELIFECYCLE

This is already discussed via gitter with @PascalPrecht. His initial thoughts:

I fear this has to do with the globbing patterns. They are prolly not supported on windows as they use \ instead of /

Is there anything else we should know?

Please execute the following commands in your terminal and post the output here

OS: Windows Node: v9.11.1 Yarn: 1.6.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
SamVerschuerencommented, Jun 19, 2018

I believe it does as it’s in the docs of Prettier, feel free to make the PR and I’ll verify it afterwards.

1reaction
Jefioziecommented, Jun 4, 2018

Thanks if you want me to reproduce things let me know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run The filename, directory name, or volume label syntax ...
When I run the command npm run cypress:open I get the saying. The filename, directory name, or volume label syntax is incorrect.
Read more >
Tipser Elements - npm
Start using @tipser/tipser-elements in your project by running `npm i ... npm format-fix, Runs prettier with fix for each package.
Read more >
Protect react codebase with Eslint, Prettier, Typescript, Lint ...
"format:fix": "npm run prettier -- --write" ... import/no-unresolved: This error shows up if Eslint could not resolve an import in the file ...
Read more >
Let's see how to configure Prettier in Next.js.
To see how to apply Prettier to the Next.js projecct, execute the ... by the Prettier rules, you can see the error message...
Read more >
osu-api-v2 - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages ... This does the same thing as running npm run test / npm run test:no-refresh-token but ......
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