How do I block advertising in npm?

前端 未结 2 750
南笙
南笙 2021-01-05 07:16

When I run various npm commands, the console output is filled with ads for various projects and people. I\'m a prolific open source contributor, but console output for a too

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-05 08:09

    You can remove ads using the funding package by adding an environment variable:

    OPEN_SOURCE_CONTRIBUTOR=true
    

    Some packages that use opencollective-postinstall need their own command instead:

    DISABLE_OPENCOLLECTIVE=true
    

提交回复
热议问题