Error installing yeoman

前端 未结 5 1727
一整个雨季
一整个雨季 2020-12-14 13:03

Installing Yeoman on my OSX machine results in the following error:

paulh16$ npm install -g yo
npm http GET https://registry.npmjs.org/yo
npm http 304 https:         


        
5条回答
  •  醉酒成梦
    2020-12-14 13:12

    For me on Ubuntu only the following worked for me...

    Ubuntu

    Tested on Ubuntu 14.04.2

    This was a base install of Ubuntu 14.04.2 on VirtualBox using ubuntu-trusty-64.

    I had just installed node and npm fresh and they were working well.

    npm install -y -g yo
    echo export PATH="$HOME/npm/bin:$PATH" >> ~/.bashrc
    npm config set prefix ~/npm
    echo "export NODE_PATH=$NODE_PATH:/home/$USER/npm/lib/node_modules" >> ~/.bashrc && source ~/.bashrc
    npm install -y -g yo
    

    yes I had to install yeoman, fix the path issues, then reinstall yeoman. based on some answers on this stack overflow post

提交回复
热议问题