Replies: 4 comments 1 reply
-
Good point. I am not sure about yarn. It became popular as v1 when npm was having some performance issues. Later npm did improved it's performance and the difference became smaller. I prefer (plain) npm. Beside yarn another alternative could be pnpm. I am not sure how much time is needed to learn any of these alternatives. I use these tools just to install dependencies. npm is required at minimum, the other solutions go on the top of node/npm asfaik. I would prefer keeping it to the basics in the future (npm) but I am also interested to hear what others think. Proper cost-benefit analyses is desired. |
Beta Was this translation helpful? Give feedback.
-
As far as I remember you can not use npm and yarn simultaneously because both have their own package lock file – which is also commited. Thus it could happen that the npm user installs other package versions than the yarn user or the other way round. Only users which use the package manager of the commited lock file will have the same package versions installed. |
Beta Was this translation helpful? Give feedback.
-
In the near future I will be looking at the splitting (monolith) front end into a number of modules. The primary goal is related to enable other hosts to have the completely custom homepage. Indirectly this request requires making of separate modules. For the maximum flexibility I think about splitting ui into following top level modules: home, software, projects, organisations, user and admin. In order to manage these module I tend to gravitate toward monorepo workspaces and PNPM in order to manage node_module folders of all these applications. I will come with the proposal but concerning YARN, NPM and PNPM discussion I will be advocating to switch to PNPM (including workspaces approach) in the future. @jmaassen @fembau @ewan-escience @ctwhome @cmeessen What do you think? Do you have any strong preference between NPM/YARN/PNPM? |
Beta Was this translation helpful? Give feedback.
-
Maybe use PNPM as the only dependency? It is possible then to use pnpm to install node. In general pnpm can replace npm, yarn and nvm. See this article https://pawelgrzybek.com/i-replaced-npm-yarn-and-nvm-with-pnpm/ |
Beta Was this translation helpful? Give feedback.
-
I was wondering why I had untracked files after running
make install
...💡 On my fresh installed system I have a recent version of yarn (v3.5), which for example creates a
.yarn
folder, while the project is on v1.https://yarnpkg.com/getting-started/qa
Beta Was this translation helpful? Give feedback.
All reactions