-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn seams to be using a different version of NPM #6617
Comments
Yarn has specific mechanisms to force the scripts it runs to use the exact same Node binary as the one used to run Yarn itself. It seems like npm conflicts with this because they do the opposite. |
I have the same problem. |
How can I fix it? |
seems to "fix" it... |
@arcanis can you explain why? I switch node by using And more over yarn create new trash dir with node exec every time I call yarn |
@kondei Another option is to include a See this SO answer: https://stackoverflow.com/a/51295237/2089675 |
@smac89 I have already done so. |
- Add `build` and `clean` scripts which use `npm run ...` to compatibly invoke the existing `build:js`, `build:types`, `clean:js`, and `clean:types` scripts. - Work around [yarnpkg/yarn#6617] by adding a `.npmrc` file which sets the npm option to eliminate noise when invoking the joint scripts. [yarnpkg/yarn#6617]: yarnpkg/yarn#6617
Closing as this is by design and there doesn't seem to be anything on our side to change or fix. |
* Fix changed image paths * Adds tests for news * Add alert test * Add webform tests * Add quickexit tests * Fix publication test * Add GTM test * Re add sitemap test * Add url test step * Improve authenticated content test * Update step definition to refer to node instead of page * Working E2E tests Working auth content test Update circle CI to test this PR disable chromeWebSecurity Fix webform test Fix auth content tests fix quickexit skip webform to diagnose timeout Add circle step to run nightly on actual domain use chrome browser and bump ram in CI Add node 12 browser container Remove browsers image and comment out failing alert test fix news test skip failing step in content preview test fix publication test update auth content yaml Fix quickexit step Use chrome instead of electron Use form submit buttons to submit fix preview content feature Improve content preview test Add a bit extra wait for CI Fix news listing step Add step to use preview link remove current url check Use UUID for preview Add waits in webform submission More waits more fixes Better timeout handling on anchorlink test Add grant test Add nid for auth content and content preview Add wait to content preview test Add test for site section alert Add wait for page navigation in anchorlink test * Change alert title * Add extra cleanup spec for alerts * Extend timeout on preview redirect * fix space in url * Add tests into new project scaffolding * Add tests into new project scaffolding * Update packages/create-ripple-app/generators/updates/22.0.0/saofile.js bump version in update script Co-Authored-By: Tim Yao <31641325+tim-yao@users.noreply.github.com> * Add siteid variable to smoke tests * Use /user/login route to workaround BE issue * Add scripts-prepend-node-path=true to fix yarn issue yarnpkg/yarn#6617 * Fix test regressions * Fix conflicting nodeids for alerts * use admin account for auth content * extend wait for demolandingpage * skip preview * force select * Add 2x parallelism * Remove step that creates auth content taxonomy * Fix content preview test * remove quickexit cleanup * Add a visit to homepage to warm cache before test * Update CRA fixtures Co-authored-by: Tim Yao <31641325+tim-yao@users.noreply.github.com>
- GH action (test) is failing, due to what looks like a `node binary` mismatch issue. - This might fix that, by putting the true binary in the path - See: yarnpkg/yarn#6617
I just encountered this issue on an "out of the box" clean setup. |
It appears that the warning message can appear (and it does for me) even when
In that case the debugger won't be loading two separate versions of |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When running a script with yarn I get the following warning:
Please mention your node.js, yarn and operating system version.
which yarn
which node
which npm
yarn --version
node --version
npm --version
On MacOS Mojave 10.14 (18A391)
The text was updated successfully, but these errors were encountered: