Cannot install latest nodejs using conda on Mac

前端 未结 3 1009
离开以前
离开以前 2021-01-12 11:08

When I run conda search -c conda-forge nodejs, I get:

# Name                       Version           Build  Channel
...
nodejs                           


        
3条回答
  •  长发绾君心
    2021-01-12 11:54

    Here's my workaround:

    I installed nodejs for Mac from the .pkg file from the offical site and then every time I update packages in my conda environments, I force remove the nodejs version conda installs with:

    conda uninstall --force nodejs
    

    and then go about using the environment as if it had nodejs installed. That way when any other package needs nodejs, it gets the latest one from the system directory /usr/local/.

提交回复
热议问题