npm install won't install devDependencies

前端 未结 9 2056
别跟我提以往
别跟我提以往 2020-11-28 17:34

On windows for some reason when I run npm install it won\'t install devDependencies. AFAIK it should. If I run npm install --dev <

9条回答
  •  情深已故
    2020-11-28 18:23

    I have the same issue because I set the NODE_ENV=production while building Docker. Then I add one more npm install --only=dev. Everything works fine. I need the devDependencies for building TypeSciprt modules

    RUN npm install
    RUN npm install --only=dev
    

提交回复
热议问题