Open ITCMD opened 3 years ago
I'm having this same issue, doing npm install --global yarn
on Ubuntu now results in
INFO[0159] cmd: /bin/sh
INFO[0159] args: [-c npm install --global npm yarn]
INFO[0159] util.Lookup returned: &{Uid:0 Gid:0 Username:root Name:root HomeDir:/root}
INFO[0159] performing slow lookup of group ids for root
INFO[0159] Running: [/bin/sh -c npm install --global npm yarn]
> yarn@1.22.10 preinstall /usr/lib/node_modules/yarn
> :; (node ./preinstall.js > /dev/null 2>&1 || true)
But just last week, it worked fine.
Exact same issue here.
$ sudo npm install --global yarn
> yarn@1.22.10 preinstall /usr/local/lib/node_modules/yarn
> :; (node ./preinstall.js > /dev/null 2>&1 || true)
Version 1.22.6 is the most recent version that seems to work for me.
Possibly related to a NodeJs change from 14.15.4 -> 14.15.5?
I ended up just changing my yarn install to do this, and it was enough to get me unstuck
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install yarn
Possibly related to a NodeJs change from 14.15.4 -> 14.15.5?
I ended up just changing my yarn install to do this, and it was enough to get me unstuck
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ apt-get update && apt-get install yarn
Thanks, this worked for me
After installing yarn properly on an unchanged debian system (lubuntu 19.04) it simply will not allow me to run
yarn
.Here is what happens when I try and install:
My Install Process
Install npm
Install yarn
ftp@ftp-optiplex:~$
ftp@ftp-optiplex:~$ yarn -v Command 'yarn' not found, but can be installed with: sudo apt install cmdtest ftp@ftp-optiplex:~$
ftp@ftp-optiplex:~$ npm bin -g /usr/local/bin
ftp@ftp-optiplex:~$ ls /usr/local/bin/ ftp@ftp-optiplex:~$