Error: npm ERR! write after end

后端 未结 10 1841
悲&欢浪女
悲&欢浪女 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:36

    None of the previous answers could help me.

    Fortunately, after a lot of 'try and error', I found the following simple solution:

    • delete (or move) the file 'package-lock.json' and npm install works flawlessly.


    Tip: if you have your project in a git repository:

    • add the file 'package-lock.json' in '.gitignore'

提交回复
热议问题