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

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

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

 

操作环境:

系统:Ubuntu 16.04.4 LTS

npm:6.4.1

 

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

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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpzfzx.html