问题描述
我有 2 个 Docker 镜像,Apache/Superset 和 Node.js。 我的服务器无法访问 Internet,因此我尝试使用我公司的注册表。我用这个命令更新了配置 de npm:
npm config set registry http://..../repository/npm-all/
但是我遇到了这个错误:
superset_node | npm ERR! code E404
superset_node | npm ERR! 404 Not Found - GET http://.../repository/npm-all/@webassemblyjs/leb128/-/leb128-1.9.1.tgz
superset_node | npm ERR! 404
superset_node | npm ERR! 404 '@webassemblyjs/leb128@1.9.1' is not in the npm registry.
superset_node | npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
superset_node | npm ERR! 404 It was specified as a dependency of 'webpack'
superset_node | npm ERR! 404
superset_node | npm ERR! 404 Note that you can also install from a
superset_node | npm ERR! 404 tarball,folder,http url,or git url.
所以我更新了容器中节点的配置(+提交+更改标签...)以强制使用http:
npm config set strict-ssl false
但我仍然有错误:(
@ant-design:registry=http://...../repository/npm-all/
@babel:registry=http://...../repository/npm-all/
@data-ui:registry=http://...../repository/npm-all/
@emotion:registry=http://...../repository/npm-all/
@superset-ui:registry=http://...../repository/npm-all/
@vx:registry=http://...../repository/npm-all/
@babel:registry=http://...../repository/npm-all/
@emotion:registry=http://...../repository/npm-all/
@hot:registry=http://...../repository/npm-all/
@istanbuljs:registry=http://...../repository/npm-all/
@storybook:registry=http://...../repository/npm-all/
@svgr:registry=http://...../repository/npm-all/
@testing-library:registry=http://...../repository/npm-all/
@types:registry=http://...../repository/npm-all/
@typescript-eslint:registry=http://...../repository/npm-all/
//http://...../repository/npm-all/
非常重要:当我尝试使用 wget 命令从同一台服务器下载包时,包被下载了!!
但它不起作用:(
你有什么想法吗?
感谢您的帮助!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)