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

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

    In my case it was $NODE_PATH missing:

    NODE="/home/ubuntu/local/node" #here your user account after home
    NODE_PATH="/usr/local/lib/node_modules" 
    PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$NODE/bin:$NODE/lib/node_modules"
    

    To check just echo $NODE_PATH empty means it is not set. Add them to .bashrc is recommended.

提交回复
热议问题