Conversation
Seems a lot less verbose to just use npm to upgrade to yarn.
|
@Daniel15 thoughts on this? |
|
They specifically recommend against it:
Via https://yarnpkg.com/en/docs/install#alternatives-stable The fact that it's not signed is a non-starter and it goes against the guidelines we follow: https://github.com/docker-library/official-images#security |
|
I agree that this should not be recommended, particularly in a "best practices" document. This also assumes you have npm installed, which might not always be the case - maybe one day you'll have a Docker image where you only have Node.js and Yarn, without npm. Yarn doesn't actually require npm to be installed. |
Yarn requires node-gyp from npm, though |
|
But I think we'll close this. A better upgrade story is hopefully incoming, see #524. Thanks for the PR! |
Only if:
Ideally packages that use node-gyp should have a dependency on it, and many already do (see https://www.npmjs.com/browse/depended/node-gyp). This avoids the reliance on a global node-gyp installation. |
Seems a lot less verbose to just use npm to upgrade to yarn.