So I’m trying to follow these instructions to get es6 functions working on glitch, and this is my first time hearing about the console on glitch, so I ran the first command in the article
npm i -g express-generator and I got the error
checkPermissions Missing write access to /opt/nvm/versions/node/v10.15.3/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /opt/nvm/versions/node/v10.15.3/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/opt/nvm/versions/node/v10.15.3/lib/node_modules'
I tried googling the error and came across this suggestion:
sudo chown -R $USER [pathname]
apparently sudo isn’t a recognized command in the glitch envrionment. Does anyone know how I can use npm to get the package installed?
I do have
"npm": "^6.12.1" in my dependencies and here is a link to my project