Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialPaul Yorde
10,497 Pointszurb foundation-app Error: read ECONNRESET
I have this happen on mac and pc Below is copied from command prompt after attempting to make a new app with this command
foundation-apps new app
It did make the project and I see all of the folders and files inside, but I can't npm start it.
Downloading the Foundation for Apps template...
Done downloading!
Installing dependencies...
events.js:85
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at exports._errnoException (util.js:746:11)
at TCP.onread (net.js:559:26)
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! foundation-apps-template@1.1.0 start: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the foundation-apps-template@1.1.0 start script 'gulp'.
npm ERR! This is most likely a problem with the foundation-apps-template package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp
npm ERR! You can get their info via:
npm ERR! npm owner ls foundation-apps-template
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Owner\Documents\fapp\npm-debug.log
Anyone know how to fix this?
6 Answers
Chyno Deluxe
16,936 PointsI'm not familiar with this but by the looks of it is seems there is a problem with gulp. Do you have it insalled?
Chyno Deluxe
16,936 PointsAfter some research you might want to check this out and see if your question can be answered here
Paul Yorde
10,497 PointsOk, so I ran gulp in my project and got this back:
Error: Cannot find module 'concat-map' 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.<anonymous> (C:\Users\Owner\Documents\app\node_modules\gulp-load-plugins\node_modules\multimatch\node_modules\minimatch\node_modules\brace-expansion\index.js:1:79) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17)
I think to install module 'concat-map', but am not sure where to install it.
Also, I get this when I run npm install in the project: npm WARN unmet dependency which is version 2.2.5
Chyno Deluxe
16,936 PointsYou might want to find the gulpfile.js and see what dependencies are needed and install those. That might be the problem. concat-map is a dependency that is not installed on your computer.
Paul Yorde
10,497 PointsSo, should I just npm concat-map in my project file? Or do I have to specifically get that into the gulpfile.js? If so, How do I do that?
Chyno Deluxe
16,936 Pointsyou can just do npm conca-map but if there are other dependencies needed then you'll know which ones once in the gulpfile.js
Paul Yorde
10,497 PointsOK, I've add concat-map, and I'm in the gulpfile.js What am I looking for in that file? Also, what does this mean? npm WARN unmet dependency which is version 2.2.5 How do I get that dependency?
Chyno Deluxe
16,936 PointsI'm sorry I meant the package.json file. In there you'll find a list of dependencies that should look something like this.
{
"name": "code-pen",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"browser-sync": "^2.8.0",
"gulp": "^3.9.0",
"gulp-ruby-sass": "^1.0.5",
"gulp-sourcemaps": "^1.5.2",
"gulp-watch": "^4.3.4"
}
}
Those devDependencies are everything that the project requires in order to work along with which versions.
Anika Jaffara
20,364 PointsAnybody know why the "foundation-apps watch" command would stop serving the app? I tried "npm start". That worked, and so did "gulp". But... why would the "foundation-aops watch" command just stop working?
Paul Yorde
10,497 PointsPaul Yorde
10,497 PointsYes CLI version 3.9.0 I noticed too the comment about something wrong with gulp as well as template package.