pro-mern-stack
pro-mern-stack copied to clipboard
Permission denied when compiling using babel
vagrant@scotchbox:/var/www/public/pro-mern-stack$ node_modules/.bin/babel src --presets react --out-dir static -bash: node_modules/.bin/babel: Permission denied
Please check the permissions on the output directory static. Babel will need to write out the compiled file into this directory.
The fact that you have put your project directory under /var/www/public makes me suspect that this is the reason you are getting a permission error. /var/www is usually not writable by regular users (vagrant, in this case). I suggest starting the project under your home directory rather than /var/www.