NPM - Failed to replace env in config: ${NPM_TOKEN}

前端 未结 6 2034
清酒与你
清酒与你 2020-12-15 02:43

I am trying to build a react app, but when I execute the command npm -i it gives me the following error:

Error: Failed to replace env in config:         


        
6条回答
  •  渐次进展
    2020-12-15 02:55

    If you just set your ~/.profile for the first time (OSX, Ubuntu) and added this line: export NPM_TOKEN="XXXXX-XXXXX-XXXXX-XXXXX". Then you must enter this line to the terminal afterward:

    source ~/.profile
    

提交回复
热议问题