Error: ENOENT, open '<file>' [CLOSED]


#1

When running:

ionic serve or ionic serve --labs

I receive this error within the browser.

Error: ENOENT, open '<path-to-file>'

Has anyone experienced this behavior before?


#2

Did you start the project from scratch?


#3

No, I’m actually developing from a cloned repository.


#4

Did you run npm install after the clone?


#5

I recall doing that, and everything resolving ok. I ran it again, here is the result.

npm WARN package.json pq_ionic@1.0.0 No repository field. npm WARN package.json pq_ionic@1.0.0 No README data npm WARN unmet dependency /home/intr0/workspace/curators/node_modules/gulp-sass requires gulp-util@'^3.0' but will load npm WARN unmet dependency /home/intr0/workspace/curators/node_modules/gulp-util, npm WARN unmet dependency which is version 2.2.20 npm WARN unmet dependency /home/intr0/workspace/curators/node_modules/gulp-concat requires gulp-util@'^3.0.1' but will load npm WARN unmet dependency /home/intr0/workspace/curators/node_modules/gulp-util, npm WARN unmet dependency which is version 2.2.20


#6

can you provide your package.json file?


#7

{ "name": "pq_ionic", "version": "1.0.0", "description": "pq_ionic: An Ionic project", "dependencies": { "gulp": "^3.5.6", "gulp-sass": "^1.3.3", "gulp-concat": "^2.2.0", "gulp-minify-css": "^0.3.0", "gulp-rename": "^1.2.0" }, "devDependencies": { "bower": "^1.3.3", "gulp-util": "^2.2.14", "shelljs": "^0.3.0" }, "cordovaPlugins": [ "org.apache.cordova.device", "org.apache.cordova.console", "com.ionic.keyboard", "org.apache.cordova.splashscreen", "cordova-plugin-device", "cordova-plugin-console" ], "cordovaPlatforms": [ { "platform": "ios", "version": "3.8.0", "locator": "ios" } ] }


#8

I updated "gulp-util": to "^3.0" and ran npm install again
Everything resolved fine, but my browser still returns the error.

####Update

I accessed a url through config.xml.
like so:
<content src="http://example.com/" > in config.xml.
changed to:
<content src="relative_path_to_file.html">