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 trialJASON LEE
17,352 PointsGetting error installing express
@5:15 in the video, while doing the command npm install express@4.15.1
I get the following command line error
npm ERR! code ENOTDIR
npm ERR! syscall mkdir
npm ERR! path G:\My Drive\CODING 101\Treehouse\FullStack_WebDev\kayakApp\node_modules\finalhandler
npm ERR! errno -4052
npm ERR! ENOTDIR: not a directory, mkdir 'G:\My Drive\CODING\101\Treehouse\FullStack_WebDev\kayakApp\node_modules\finalhandler'
npm ERR! A complete log of this run can be found in:
1 Answer
JASON LEE
17,352 PointsYes and no. The only directory I had was kayakApp
. I tried manually creating the missing directories and re-doing the npm install express@4.15.1
command, it kept giving me subsequent errors.
But I found out what the issue was. I'm installing npm modules on my G:\ which is a Google drive connected to the cloud. I have all my programming files on the google cloud drive so I can work from any workstation. But I guess it doesn't work when installing npm modules....
It only works when I'm installing it directly on my local disk i.e. C:
.
Travis Alstrand
Treehouse TeacherI'm glad that you figured it out! Nice job!
Jason Gilmore
Treehouse StaffJason Gilmore
Treehouse StaffHi Jason, if you open a terminal and navigate to your
kayakapp\node_modules
directory, do you see a directory namedfinalhandler
?