当升级nodejs后,构建vue工程可能会报编译错误:
ERROR Build failed with errors. npm ERR! code ELIFECYCLE npm ERR! errno 1
则需要对vue工程进行清理操作:
npm cache clean --force
rm -rf node_modules
rm -f package-lock.json
当升级nodejs后,构建vue工程可能会报编译错误:
ERROR Build failed with errors. npm ERR! code ELIFECYCLE npm ERR! errno 1
则需要对vue工程进行清理操作:
npm cache clean --force
rm -rf node_modules
rm -f package-lock.json