Bower: “command not found” after installation

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

    My problem was the Homebrew/node/npm bug found here - https://github.com/npm/npm/issues/3794

    If you've already installed node using Homebrew, try:

    npm update -gf
    

    Or, if you want to install node with Homebrew and have npm work, use:

    brew install node --without-npm
    curl -L https://npmjs.org/install.sh | sh
    

提交回复
热议问题