Bower: “command not found” after installation

前端 未结 11 1931
青春惊慌失措
青春惊慌失措 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:22

    In Mac OS X add next row into your ~/.bash_profile

    export PATH="$HOME/.node/lib/node_modules/bower/bin:$PATH"

    And restart terminal or type:

    source ~/.bash_profile

提交回复
热议问题