Ionic v2 together ionic v1

We currently have ionic v2 and ionic v1 projects. We can not upgrade our v1 projects at moment. If we install ionic@beta the ionic v1 projects stop working.

I get the message that ionic.project is no longer used and ionic.config.js has to be used…

1 Like

What version of the CLI are you using?

This was an issue a few versions ago, but has since been fixed in beta24 of the CLI.

You might need to update the CLI installation


# update the CLI 
npm install -g ionic@beta

Can you use ionic 1 and 2 together in a project?

I’ve got the same problem, and I’ve updated to the CLI installation too. I get this error:

$ ionic build ios
There is an error in your gulpfile:
Error: libsass bindings not found. Try reinstalling node-sass?
at getBinding (someapp/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22:11)
at Object. (someapp/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (module.js:413:34)
at Object.Module._extensions…js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (someapp/node_modules/gulp-sass/index.js:3:17)
at Module._compile (module.js:413:34)

I’ve tried running npm install node-sass, but that did not help. Still getting the same error.

I am experiencing the same. I can work with v2 but cannot build any v1 projects.

There is an error in your gulpfile:
Error: libsass bindings not found. Try reinstalling node-sass?
    at getBinding (c:\Users\ariel\Documents\Work\ion-audio\example-audio\node_modules\node-sass\lib\index.js:22:11)
    at Object.<anonymous> (c:\Users\ariel\Documents\Work\ion-audio\example-audio\node_modules\node-sass\lib\index.js:188:23)
    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)
    at Object.<anonymous> (c:\Users\ariel\Documents\Work\ion-audio\example-audio\node_modules\gulp-sass\index.js:3:17)
    at Module._compile (module.js:409:26)

have you tried to check if gulp is out of date? I think after i update mine, it works.

npm outdate //check
npm update //to update anything that is out of date

one time I did, npm -g update, it worked as well.

I hope that it works :slight_smile:

I tried what you suggested, but it’s still not working :confused:

Thanks for trying to help though.

You might need to check your project structure. Easiest solution at the moment it to create a new blank project, and migrate your code over from there.