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

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

    On Mac OS X (10.12.6), I resolved this issue by doing the following:

    brew uninstall --force node
    brew install node
    

    I then got an error complaining that node postinstall failed, and to rerun brew postinstall node

    I then got an error:

    permission denied @ rb_sysopen /usr/local/lib/node_modules/npm/bin/npx
    

    I resolved that error by:

    sudo chown -R $(whoami):admin /usr/local/lib/node_modules
    

    And now I don't get this error any more.

提交回复
热议问题