如何在非根驱动器上运行create-react-app项目名?

我正在使用npm 6.12.0,lubuntu 19.04和create-react-app 3.2.0。当我在非根驱动器中运行create-react-app项目名称时,

error "npm ERR! Maximum call stack size exceeded"

出现了,但是当我在根驱动器中运行时,它可以正常运行。由于根容量存储的限制,我应该在非根驱动器中运行(SD卡作为外部驱动器),那么我该如何在非根驱动器中运行它?

meng0827 回答:如何在非根驱动器上运行create-react-app项目名?

也许这种强制清理缓存将解决

npm cache clean --force

如果上述方法不能解决问题,请尝试删除节点模块

rm package-lock.json
rm -r node_modules
npm install
本文链接:https://www.f2er.com/3132541.html

大家都在问