@amartelr wrote:
Hi, Everyone. to anyone who can help me, thanks
I'm trying to generate a directive through the Ionic CLI:
ionic-cli generate directive mydirective
but It returned the following error.
Error with generation: [TypeError: Path must be a string. Received undefined]
TypeError: Path must be a string. Received undefined
at assertPath (path.js:8:11)
at Object.posix.join (path.js:479:5)but when I run like this:
ionic generate directive
it show me:
You do not appear to have a compatible version of Ionic v2 installed.
Ionic Framework v2 version 2.0.0-alpha.31 or later is required to use the generators.
Please run: "npm install ionic-framework" (CLI v2.0.0-alpha.25)Your system information:
Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 2.0.0-alpha.35
Ionic CLI Version: 2.0.0-alpha.25
Ionic App Lib Version: 2.0.0-alpha.24
OS: Distributor ID: Ubuntu Description: Ubuntu 15.10
Node Version: v4.2.2npm outdated -g --depth=0
Package Current Wanted Latest Location
ionic 2.0.0-alpha.25 2.0.0-alpha.25 1.7.11How can I upgrade to the version 2.0.0-alpha.31 or later
Thank u.
Posts: 4
Participants: 2