Error installing yeoman

前端 未结 5 1728
一整个雨季
一整个雨季 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条回答
  •  猫巷女王i
    2020-12-14 13:19

    The npm command fails because you need to be root to edit files under /usr/.

    You should properly configure npm, see this relevant SO answer:

    $ echo prefix = ~/.node >> ~/.npmrc
    

提交回复
热议问题