升級(jí)后遇到
npm ERR! Please try running this command again as root/Administrator
嘗試了很多種方法,都無(wú)法解決
最終步驟:
1、先把node_module刪掉
2、npm install npm @4.6.1 -g 進(jìn)行降級(jí)
3、npm install npm @latest -g 進(jìn)行升級(jí)到最新的 現(xiàn)在是5.4.2
4、npm cache clean --force 清理緩存
5、npm install 等待安裝
后面再安裝其他包就不報(bào)錯(cuò)了