Laurent Goderre

Results 152 comments of Laurent Goderre

You beat me to it!!! I was going to post the same!

Can we configure the `bin` folder npm uses to point to a folder that the `node` user owns and add that one to `PATH`?

@SimenB 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`. Maybe this...

I like the prefix better as well but the other option is potentially less disruptive

Les paths ci-haut semble être des paths de Mac OS. Utilisez-vous docker pour node?

The solution mentioned here works. https://github.com/nodejs/docker-node/issues/437#issuecomment-320993300 In addition, npm added the `npx` command for running installed dependencies which significantly simplifies running globally installed modules.

Trying to do npm install as root in a mounted folder caused a lot of problems. Can you check what thw permissions of your `$PWD` are?

You can do it but it does lead to all sort of permission mismatch which makes debugging these types of issue very hard.

I should also point out that it's especially problematic with mounted volumes from the host system.

We just reused one that already existed. I think it would be fine getting a more restricted one for this one as long as it still has access to write...