ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Error: ENOENT: no such file or directory,

Open benBarking opened this issue 10 years ago • 9 comments

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)

benBarking avatar Jul 30 '16 20:07 benBarking

me too!

rehiy avatar Aug 09 '16 14:08 rehiy

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](C:UsersMarkDocumentsApp DevelopmentPPPnode_modu lestsifyindex.js:58:6) 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

Mobius77x avatar Aug 17 '16 05:08 Mobius77x

me too

mousPolyOps avatar Aug 23 '16 20:08 mousPolyOps

me too...

PrithiviRajG avatar Sep 01 '16 09:09 PrithiviRajG

same

wightspace avatar Sep 02 '16 03:09 wightspace

me too. somebody can help us?

Ingosmar89219 avatar Nov 26 '16 07:11 Ingosmar89219

update your all node modules!

rehiy avatar Nov 27 '16 01:11 rehiy

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

jthoms1 avatar Nov 28 '16 15:11 jthoms1

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!

ionitron-bot[bot] avatar Jul 12 '18 18:07 ionitron-bot[bot]