38312 error code ELIFECYCLE 38313 error syscall spawn 38314 error file sh 38315 error errno ENOENT 38316 error email@example.com install: `node bin/install.js` 38316 error spawn ENOENT 38317 error Failed at the firstname.lastname@example.org install script. 38317 error This is probably not a problem with npm. There is likely additional logging output above.
npm install -g @vue/cli @vue/cli-service-global --unsafe-perm
For security reasons, if you run npm install as root, npm will set the user to “nobody” when running postinstall scripts, which does not have access to the project directory, thus the error message.