> core-js@3.4.6 postinstall ***nodejs/lib/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}"
sh: node: 未找到命令 npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! core-js@3.4.6 postinstall: `node -e "try{require('./postinstall')}catch(e){}"` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the core-js@3.4.6 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-07-03T03_42_07_918Z-debug.log [root@localhost _logs]# npm install -g core-js@3
解决方法如下,加上 --unsafe-perm 命令
npm install -g --unsafe-perm @vue/cli