在npm --save 安装更新某个包的版本之后,重新启动项目报错:
INFO start development server...
ERROR TypeError: Expected `cwd` to be of type `string` but rece
ived type `undefined`
TypeError: Expected `cwd` to be of type `string` but received typ
e `undefined`
解决方法: 将node_modules文件夹删除,重新yarn 或者npm install,即可恢复正常。