“npm config set registry https://registry.npmjs.org/” is not working in windows bat file

前端 未结 10 1454
自闭症患者
自闭症患者 2020-12-12 10:08

I create a.bat on windows 7, the content of a.bat is:

@echo off
npm config set registry https://registry.npmjs.org/

and then run a.bat, but

10条回答
  •  囚心锁ツ
    2020-12-12 10:28

    Probably I am too late to answer. But if anybody need it, following works fine, as I have used it a lot of times.

    npm config set registry=https://registry.npmjs.com/
    

提交回复
热议问题