Error on `ionic share`: Cannot find module './project'
More details about this issue are available in the following forum topic: Cannot find module ‘./project’.
Running [email protected] and from the CLI using the command:
ionic share [email protected]
This throws an error in the CLI in ionc/lib/ionic/share.js:
Error: Cannot find module './project'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (C:\Users\Joe\AppData\Roaming\npm\node_modules\ionic\lib\ionic\share.js:7:20)
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)
Cannot find module './project' (CLI v2.0.0-beta.25)
Tried to then run npm install project, but error still occurs. Can't seem to find a module named project inside the ionic package.
My system information:
Cordova CLI: 6.0.0
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS: Windows 7 SP1
Node Version: v5.7.0
I wanted to try this fix from #973 but I went to problem in #1005
Same here
Error: Cannot find module './project'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.
Cannot find module './project' (CLI v2.0.0-beta.25)
Your system information:
Cordova CLI: 6.2.0 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.7 Ionic CLI Version: 2.0.0-beta.25 Ionic App Lib Version: 2.0.0-beta.15 ios-deploy version: Not installed ios-sim version: Not installed OS: Mac OS X El Capitan Node Version: v0.12.4 Xcode version: Xcode 7.3.1 Build version 7D1014
@iignatov Could you try the latest beta 2.0.0-beta.30 and let me know if it is still occurring for you? Thanks!
@jthoms1 I just tried with 2.0.0-beta.30 and the error is not thrown anymore - closing the issue.