Ionic-cli: Error: ENOENT: no such file or directory,

Created on 30 Jul 2016  路  9Comments  路  Source: ionic-team/ionic-cli

Get this error trying to build for v2 ionic:

No idea what I am doing wrong - help appreciated

Running 'run:before' gulp task before run
[21:30:43] Starting 'clean'...
[21:30:43] Finished 'clean' after 38 ms
[21:30:43] Starting 'build'...
[21:30:43] Starting 'sass'...
[21:30:43] Starting 'html'...
[21:30:43] Starting 'fonts'...
[21:30:43] Starting 'scripts'...
[21:30:43] Finished 'sass' after 22 ms
[21:30:43] Finished 'html' after 13 ms
[21:30:43] Finished 'scripts' after 40 ms
[21:30:43] Finished 'fonts' after 46 ms
Caught exception:
Error: ENOENT: no such file or directory, lstat '/Users/BenMedland/Barkv2/app'
at Error (native)
at Object.fs.lstatSync (fs.js:887:18)
at Object.realpathSync (fs.js:1518:21)
at /Users/BenMedland/Barkv2/node_modules/tsify/index.js:58:38
at Array.map (native)
at DestroyableTransform.flush as _flush
at DestroyableTransform. (/Users/BenMedland/Barkv2/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:115:49)
at DestroyableTransform.g (events.js:273:16)
at emitNone (events.js:80:13)
at DestroyableTransform.emit (events.js:179:7)

old major version

All 9 comments

me too!

Getting similar.

c:\Users\Mark\My Documents\App Development\PPP>ionic serve

Running 'serve:before' gulp task before serve
[13:03:18] Starting 'clean'...
[13:03:19] Finished 'clean' after 168 ms
[13:03:19] Starting 'watch'...
[13:03:19] Starting 'sass'...
[13:03:19] Starting 'html'...
[13:03:19] Starting 'fonts'...
[13:03:19] Starting 'scripts'...
[13:03:19] Finished 'html' after 271 ms
[13:03:19] Finished 'scripts' after 295 ms
[13:03:19] Finished 'fonts' after 366 ms
[13:03:22] Finished 'sass' after 3.43 s
Caught exception:
Error: ENOENT: no such file or directory, lstat 'C:\Users\Mark\Documents\App Development\PPP\typing
s\index.d.ts'
at Error (native)
at Object.fs.lstatSync (fs.js:887:18)
at Object.realpathSync (fs.js:1518:21)
at C:\Users\Mark\Documents\App Development\PPP\node_modules\tsify\index.js:58:38
at Array.map (native)
at DestroyableTransform.flush as _flush
at DestroyableTransform. (C:\Users\Mark\Documents\App Development\PPP\node_modules\th
rough2\node_modules\readable-stream\lib_stream_transform.js:115:49)
at DestroyableTransform.g (events.js:273:16)
at emitNone (events.js:80:13)
at DestroyableTransform.emit (events.js:179:7)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

The file \typings\index.d.ts' does not exist, and I see that it doesn't exist in the Conference App, which similarly to me has

typings/browser/ambient
typings/main/ambient
typings/browser.d.ts
typings/main.d.ts

Why is something looking for index.d.ts?

My dev dep versions are as follows:

"devDependencies": {
"del": "^2.2.2",
"gulp": "3.9.1",
"gulp-watch": "^4.3.9",
"ionic-gulp-browserify-typescript": "^2.0.0",
"ionic-gulp-fonts-copy": "^1.0.0",
"ionic-gulp-html-copy": "^1.0.0",
"ionic-gulp-sass-build": "^1.0.0",
"ionic-gulp-scripts-copy": "^2.0.1",
"run-sequence": "^1.2.2"
},

Cordova CLI: 6.1.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
OS: Windows 8.1
Node Version: v5.11.0

me too

me too...

same

me too. somebody can help us?

update your all node modules!

Could you provide me with the output from ionic info from within your project directory? Thanks, this should help in troubleshooting.

Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.

Thank you for using Ionic!

Was this page helpful?
0 / 5 - 0 ratings