Cannot find module 'read' when using ionic start


#1

Trying to get started with ionic and am not able start an app.

When I try ionic start myApp blank it gives the above error, cannot find module 'read'.

aarmora@Breeze:/home/sites$ ionic start taskApp blank

Error: Cannot find module 'read'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/prompt/lib/prompt.js:12:12)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)

Cannot find module 'read' (CLI v1.7.14)

Your system information:

Cordova CLI: Not installed
Gulp version:  CLI version 3.9.0
Gulp local:  
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS: Distributor ID:	Ubuntu Description:	Ubuntu 14.04.3 LTS 
Node Version: v4.3.0

When I try to install this package, it looks like it’s already installed.

aarmora@Breeze:/home/sites$ sudo npm install -g read
read@1.0.7 /usr/lib/node_modules/read
└── mute-stream@0.0.5

I’ve uninstalled node, cordova, ionic and reinstalled all of them but it yields the same.

Any ideas?


#2

Hello! Check your nodejs settings . You must install node js correctly like:

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm update -g
sudo npm install -g cordeva ionic