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

后端 未结 18 2967
悲哀的现实
悲哀的现实 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:12

    This is a helpful video and blog post about removing node from your computer OS. It is a different method of removal based on how you installed node in the first place (brew vs. binary file downloaded from https://nodejs.org/en/

    • if you installed node with Homebrew then brew uninstall node will work. Verify that with running a node -v command in your terminal.

    • Otherwise and if you have installed the binary file from nodeJS's websitethen you have to run this command in your terminal: sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}. Again, verify that with running a node -v command.

    • In both cases, successful removal of node should result in bash not recognizing what node is if it is completely removed

提交回复
热议问题