Error: Cannot find module '../lib/utils/unsupported.js' while using Ionic

后端 未结 18 3014
悲哀的现实
悲哀的现实 2020-12-12 09:34

I always get this error message when I run \"Ionic start project name\":

Error message

Running command - failed![ERROR] An error occurred while run         


        
18条回答
  •  孤街浪徒
    2020-12-12 10:31

    Tried all above/older brew installation answers, none is working for my laptop.

    Only below method could fix my issue.

    1) Run following commands:

    sudo rm -rf /usr/local/lib/node_modules/npm
    brew uninstall --force node      
    

    2) Then, proceed to Node.js Official Website https://nodejs.org/en/download/current/ to download latest package for new installation.

    3) Run your npm command again, which should longer have any errors.

    This method is working on macOS Mojave Version 10.14.4.

提交回复
热议问题