问题:用create-next-app创建应用报错,部分模块没有安装,react、react-dom、next等模块安装失败,如下图所示

Error! Failed to install react, react-dom, next, try again.-LMLPHP

操作环境:

系统:Ubuntu 16.04.4 LTS

npm:6.4.1

解决方法:命令前加上“sudo”,react、react-dom、next等模块创建成功,如图:

Error! Failed to install react, react-dom, next, try again.-LMLPHP

05-22 10:51