在我的package.json中,我没有任何关于@babel的东西,但是当我运行npm install时,我遇到了一个错误:
npm ERR!404 Not Found - GET http://private_repo/repository/npm-all/@babel/helper-create-class-features-plugin/-/helper-create
我正在尝试安装一个从我们的私有存储库中提取的npm包。当我以我自己的身份运行npm install时,我会得到Please try running this command again as root/Administrator.当我以sudo运行它时,我会得到我通常不会使用sudo来安装npm。我认为问题在于,当我以sudo身份运行时,它会在/var/root/.ssh中查找