我如何修复在Docker容器中进行npm安装的错误

时间:2019-12-19 05:23:20

标签: node.js docker npm docker-compose

我做了docker-compose构建,但是发生了这样的错误。

Step 4/7 : RUN npm install -g @vue/cli @vue/cli-init                                                                  
 ---> Running in f6f438cc2956                                                                                         
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number
 of issues. Please, upgrade your dependencies to the actual version of core-js@3.                                     
npm WARN deprecated vue-cli@2.9.6: This package has been deprecated in favour of @vue/cli                             
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)                 
Killed                                                                                                                
ERROR: Service 'web' failed to build: The command '/bin/sh -c npm install -g @vue/cli @vue/cli-init' returned a non-ze
ro code: 137    

我在Windows上使用流浪汉在VM中构建ubuntu。请帮忙。谢谢!

0 个答案:

没有答案