小编mag*_*agp的帖子

NPM 在 docker 容器内从 github 安装某些内容失败

我一直在尝试从 github 存储库安装一些东西并在里面运行它。我npm install github:openfn/core#v1.0.0在我的项目目录中使用了它添加"core": "github:openfn/core#v1.0.0"到package.json中。但是,当我尝试构建 docker 容器时,docker build -t name .我收到以下警告并最终出现错误:

npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/pino-pretty-fddda985/.travis.yml'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/@babel/core-96a25426/lib/config/files/types.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/@babel/core-96a25426/lib/config/util.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/@babel/core-96a25426/lib/config/files/utils.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/eslint-plugin-node-d3ce1706/lib/rules/no-unsupported-features/node-builtins.js'
npm WARN tar ENOENT: no such file …
Run Code Online (Sandbox Code Playgroud)

git node.js npm docker

3
推荐指数
1
解决办法
3129
查看次数

标签 统计

docker ×1

git ×1

node.js ×1

npm ×1