Open yoannmoinet opened 4 years ago
Hi @yoannmoinet
Seems like yarn2 is not downloading the packages the same way npx does. I haven't tried yarn 2 myself but if their goal is to have parity I would raise this issue with them as I doubt we would be the only project running into this.
Unfortunately the team does not have time to look into this at the moment but if you find out how to make it work please submit a PR!
This change will require some changes to webhint's resource loader.
🐛 Bug report
Description
We're using Yarn v2 with PnP enabled. Running
yarn hint <path to dist folder>
outputs this:Answering
Y
will trigger this error:So we installed manually
But the error persists.
Environment
hint
version:v6.1.0Node.js
version:v12.16.1OS
:MacOS Catalina (10.15.6)webhint
configurationwebhint’s configuration
```json { "connector": "local", "formatters": [ "html", "summary" ], "browserslist": [ "last 2 versions", "IE 11" ], "hints": { "compat-api/css": "error", "compat-api/html": "error" }, "hintsTimeout": 10000 } ```Debug output
Please include the raw output generated by
webhint
, or if possible, the raw output from runningwebhint
in debug mode:hint --debug <URL>
.webhint’s raw output
```text The following packages are missing: hint-compat-api/css, hint-compat-api/html There are packages from your .hintrc file not installed or with an incompatible version. Do you want us to try to install/update them? (Y/n) ``` and ```bash Installing packages... npm ERR! code ENOLOCAL npm ERR! Could not install from "@hint/hint-compat-api/css" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in: npm ERR!