Simen Bekkhus
Simen Bekkhus
Since we merged another PR updating, we will have to wait for a new node release to test it, though.
@nschonni getting rid of the extra diff is probably easiest by just doing `git checkout DIR_OF_MAJOR_THAT_DIDN'T_CHANGE`
Hmm, odd. Should we make `node` the owner of `/usr/local`? or at least `/usr/local/lib/node_modules`?
There is https://github.com/nodejs/docker-node/issues/479#issuecomment-319447486. PR welcome!
Yup. ```sh-session $ docker run node:latest ls -la /usr/local/lib/node_modules/npm total 192 drwxrwxr-x 11 500 500 4096 Jul 20 20:59 . drwxrwxr-x 3 500 500 4096 Jul 20 20:59 .. drwxrwxr-x...
Doing `chown -R node:node /usr/local/lib/node_modules` kinda works, but then it fails when trying to link binaries into `/usr/local/bin/`. So either we should just set a npm prefix for the node-user...
That's the prefix option. See https://docs.npmjs.com/files/folders
>we can move the whole global dependencies to the user space with the prefix or we can figure a way to make linked binary work in `/usr/local`. Setting `NPM_CONFIG_PREFIX` somehow...
I don't know (I also don't think so, but I've been wrong before 😃)
Shouldn't be, instructions in https://yarnpkg.com/getting-started/install remain valid afaik