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

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

    If you are using "n" library @ https://github.com/tj/n . Do the following

      echo $NODE_PATH
    

    If node path is empty, then

    sudo n latest    - sudo is optional depending on your system
    

    After switching Node.js versions using n, npm may not work properly.

    curl -0 -L https://npmjs.com/install.sh | sudo sh
    echo NODE_PATH
    

    You should see your Node Path now. Else, it might be something else

提交回复
热议问题