npm install Error: rollbackFailedOptional

前端 未结 26 990
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 04:26

When I try npm install new packages it shows me this error:

rollbackFailedOptional: verb npm-session 585aaecfe5f9a82

<
26条回答
  •  温柔的废话
    2020-11-28 05:12

    Solution: The default value of ‘proxy’ and ‘https-proxy’ key of npm config is NULL. After doing some more R & D then I tried to set the proxy setting value to above key (this solution works in my scenario).

    Also, the same proxy settings need to be applied in IE browser Internet Settings >> Settings >> LAN settings.

    Conclusion: In corporate/some environment the proxy is a somewhat mandatory setting otherwise npm install will not work.

    Issue on GitHub: https://github.com/SharePoint/sp-dev-docs/issues/3266

    You can refer blog for detailed information https://blogs2share.blogspot.com/2019/01/spfx-environment-setup-error.html

提交回复
热议问题