npm错误记录: npm ERR! code ENOLOCAL npm ERR! Could not install from "" as it does not contain a package.json file.
问题描述:
在初始化项目的时候出现这个报错
npm ERR! code ENOLOCAL
npm ERR! Could not install from "" as it does not contain a package.json file.
解决方案:
npm install -g npm