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 trialMikeal Mann
Full Stack JavaScript Techdegree Student 17,913 PointsPractice-import-export module issue in Npm install?
TypeError: Cannot read property 'push' of undefined
at Function.route (C:\Users\Mikey\Desktop\practice-exercise\practice-exercise\node_modules\express\lib\router\index.js:502:14)
at Function.proto.<computed> [as get] (C:\Users\Mikey\Desktop\practice-exercise\practice-exercise\node_modules\express\lib\router\index.js:509:22)
at Object.<anonymous> (C:\Users\Mikey\Desktop\practice-exercise\practice-exercise\routes.js:13:8)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (C:\Users\Mikey\Desktop\practice-exercise\practice-exercise\app.js:6:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! practice-import-export@1.0.0 start: node app
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the practice-import-export@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Mikey\AppData\Roaming\npm-cache_logs\2021-01-19T16_22_16_646Z-debug.log