Please don't assume we don't have NodeJs installed.
If yarn won't install without NodeJs present, then throw error message. If a developer doesn't want to use nvmw or nodist, then they explicitly install nodejs along with yarn: sudo choco install nodejs yarn -Y
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
choco manifest assumes I don't have node installed or that I'm not using Nodist, a node version manager for windows.
If the current behavior is a bug, please provide the steps to reproduce.
scoop, then scoop install sudosudo choco install yarnWhat is the expected behavior?
Not have yarn install a version of node over the top of nodist...
Please mention your node.js, yarn and operating system version.
nodejs: whatever version i want...
os: windows 10.
The purpose of a package management system like Chocolatey is to manage your dependencies 😛 Yarn would be broken out-of-the-box for lots of users if it didn't specify a dependency on Node.js. You can install Yarn like choco install yarn --ignore-dependencies to ignore the Node.js dependency, or just use the Windows installer directly.
Closing this out as you can use --ignore-dependencies if you don't want to install Node via Chocolatey.
Confirming choco install yarn --ignore-dependencies is a must do.
I've tried choco install nodejs-lts, got node version 8.9.3, then choco install yarn, then choco automatically installs nodejs.install for me so i got version 9.3.0...
Is there a way to make Yarn handle either the LTS Node.js, or the regular
one? I don't want to totally remove the dependency as it'll break the Yarn
out-of-the-box experience for people that don't have Node.js installed.
Sent from my phone.
On Jan 2, 2018 7:00 PM, "Mao Hsi Shu" notifications@github.com wrote:
Confirming this is a must do.
I've tried choco install nodejs-lts, got node version 8.9.3, then choco
install yarn, then choco automatically installs nodejs.install for me so
i got version 9.3.0...—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/yarnpkg/yarn/issues/2524#issuecomment-354928512, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFnHWA2JaSl_Hk_EgwIzOm_LgPscFGUks5tGu03gaJpZM4LqSpw
.
The ironic thing is that this is the transitive dependency type of problem that tools like Yarn aim to solve in the first place. I also ran into this problem and made a post in my blog about the pitfall when trying out the SAFE stack which uses Yarn by default.
The nodejs package has a comment that it's a meta package, but that users who want LTS should still install nodejs-lts. Generally I would expect a package like nodejs-lts to declare that it provides nodejs and the package manager would consider dependencies resolved if it's installed.
@ferventcoder maintains the chocolately package for nodejs. Maybe he can give some guidance?
Most helpful comment
Closing this out as you can use
--ignore-dependenciesif you don't want to install Node via Chocolatey.