Package cairo was not found in the pkg-config search path. Node j.s install canvas issue

后端 未结 9 703
逝去的感伤
逝去的感伤 2020-12-01 05:46

I am having a problem installing installing the canvas module in node..It seems to be something with cairo I am getting this error...

npm http GET https://re         


        
9条回答
  •  有刺的猬
    2020-12-01 06:24

    When I ran into this problem the issue was that the version of pkg-config on my path was the version supplied by chefdk instead of the homebrew installed version.

    $ which pkg-config
    /usr/local/bin/pkg-config
    
    $ eval "$(chef shell-init bash)"
    $ which pkg-config
    /opt/chefdk/embedded/bin/pkg-config
    

    The solution was to remove the eval "$(chef shell-init bash)" entry from my bash profile.

    More discussion of the issue in chefdk's path generation on Github https://github.com/chef/chef-dk/issues/313

提交回复
热议问题