-
following the get-start procedure, when i run “ionic start ionicApp blank”, get error “Unable to add plugins. Perhaps your version of Cordova is too old”
-
then change dir to the ionicApp and run “cordova plugin add” to add plugin manually.
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git -
then run “ionic platform add android”, but get error “Cannot find module ‘readable-stream/transform’”
how can i get the issue fix?
the detail info:
D:\app>ionic start ionicApp blank
Creating Ionic app in folder D:\app\ionicApp based on blank project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic-starter-blank/archive/master.zip
[=============================] 100% 0.0s
Updated the hooks directory to have execute permissions
Update Config.xml
Initializing cordova project
Unable to add plugins. Perhaps your version of Cordova is too old. Try updating (npm install -g cordova), removing this project folder, and trying again. (CLI v1.7.15)
Your system information:
Cordova CLI: 6.2.0
Ionic Framework Version: 1.3.1
Ionic CLI Version: 1.7.15
Ionic App Lib Version: 0.7.2
OS: Windows 7 SP1
Node Version: v4.4.3
**D:\app>cd ionicApp**
**D:\app\ionicApp>cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git**
Fetching plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git" via git clone
Repository "https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git" checked out to git re
f "master".
**D:\app\ionicApp>cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git**
Fetching plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git" via git clone
Repository "https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git" checked out to git r
ef "master".
**D:\app\ionicApp>ionic platform add android**
Error: Cannot find module 'readable-stream/transform'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\ljzhao\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic
-app-lib\node_modules\vinyl-fs\node_modules\glob-stream\node_modules\unique-stream\node_modules\thro
ugh2-filter\node_modules\through2\through2.js:1:79)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
Cannot find module 'readable-stream/transform' (CLI v1.7.15)