Error: npm ERR! write after end

后端 未结 10 1840
悲&欢浪女
悲&欢浪女 2021-01-31 13:54

I am having issues installing Cordova and Ionic. At first I couldn\'t because of what seems to be a corrupted installation, that led me to uni

10条回答
  •  暖寄归人
    2021-01-31 14:31

    Try installing latest npm version this happens a lot with ionic.

    npm install -g npm@latest
    npm cache verify
    npm i 
    

    If this doesn't work I advise you to switch to yarn. It's faster & easier to use. This is the link to download YARN. After installing just run this command yarn global add cordova ionic

    Ionic CLI uses npm by default. So go to your project & run $ yarn install.

    If you want Ionic to use yarn by default run this: $ ionic config set -g yarn true

提交回复
热议问题