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

前端 未结 6 2033
清酒与你
清酒与你 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:54

    Running npm install in an IDE (like WebStorm) was my problem. I added the NPM_TOKEN environment variable to .bash_profile and restarted my Terminal, but not my IDE! The IDE did not pick up the changes to the environment until I restarted it as well.

提交回复
热议问题