Bower: “command not found” after installation

前端 未结 11 1836
青春惊慌失措
青春惊慌失措 2020-11-29 02:05

I seem to be getting the following when I execute npm install bower -g

/usr/local/share/npm/bin/bower -> /usr/local/share/npm/lib/node_module         


        
11条回答
  •  有刺的猬
    2020-11-29 02:24

    For users that are encountering issues with the installation in mac as shown in the official page, it seems that El Capitan is giving permission issues to install the package in that way:

    npm install bower -g

    The solution I've found to avoid the permission errors is using sudo (superuser do) to provide access for node to download the package like this:

    sudo npm install bower -g

    Hopefully this may help users having the same problem. :)

提交回复
热议问题