Closed DevinsonAlvarez closed 9 months ago
The error happened because I build the contrainer from WSL and the permissions were not assigned to the node user, I solved it by changing the owner on folder using sudo chown -R $USER . && npm install
. This problem only happened while using WSL.
Hi, I'm trying build a
typescript-node
container but when I using npm install or npm run dev throws the next errors:This error solves when I run as root using
sudo npm install/run dev
but I thing it is not the best idea to always run these commands as root. This is my .devcontainer file: