Ionic serve not working in Ionic 3

前端 未结 20 610
眼角桃花
眼角桃花 2021-01-16 23:06

My Ionic info:

cli packages: (/usr/lib/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1 

local pack         


        
20条回答
  •  星月不相逢
    2021-01-16 23:57

    You should not use "sudo" with any of the ionic/npm commands. If it throws error without "sudo", then you can fix it by changing the owner of the npm packages, using the command below:

    sudo chown -R $(whoami) ~/.npm

提交回复
热议问题