程序员日记5.22
npm ERR! Unexpected end of JSON input while parsing near ‘…,“dist”:{“shasum”:"af’
执行的时候下载安装报错
cmd命令行,执行npm cache clean --force 清除缓存区,最后重新安装npm install安装成功了,npm安装成功了,
完美契合新的文件夹,安装成功
继续进行下去,还是报错:最后发现是vue-template-compiler没有安装或版本不一致导致的;
重新安装npm install,项目开始运行,编译成功
报错提示
Cannot read property ‘parseComponent’ of undefined
vue-template-compiler must be installed as a peer dependency