运行的时候提示仓库没有注册,错误信息如下:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@npm/npm-e-sig-entry/-/npm-e-sig-entry-0.9.1.tgz
npm ERR! 404
npm ERR! 404 '@npm/[email protected]' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'app'
问题和解决
这个问题主要可能是因为你使用了 npm 的私有仓库。
你可以选择添加 .npmrc 文件到你的项目的根目录下。
然后再进行一次同步,Okteto 应该会拷贝这个文件到容器的 /usr/src/app 目录下面。