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 trialjlampstack
23,932 Pointsnpm install error
Anyone else get the same error? What do I do? Should we be cloning a git repository for this lesson?
Jason@jason-pc MINGW64 /c/xampp/htdocs/angular-2
$ npm install
npm WARN saveError ENOENT: no such file or directory, open 'C:\xampp\htdocs\angular-2\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\xampp\htdocs\angular-2\package.json'
npm WARN angular-2 No description
npm WARN angular-2 No repository field.
npm WARN angular-2 No README data
npm WARN angular-2 No license field.
up to date in 0.277s
3 Answers
Jacob Mishkin
23,118 PointsDid you download the the starter files photo_blog? inside of that folder is a file called package.json inside of that should hold your dependencies for the course.
Go to the teachers notes and download the starter files.
jlampstack
23,932 PointsI must have missed that step. I don't recall seeing Andrew perform that step? I will try it out. Thanks!
Jacob Mishkin
23,118 PointsThere are a lot of things he mentions you will need for this course, in the first video. Please make sure you have downloaded every dependency in order to complete the course.
jlampstack
23,932 PointsJacob Mishkin , I have Visual Studio Code (already my go to editor), the latest version of Node & NPM, and typescript which already comes with Visual Studio Code.
Am I missing anything?
Jacob Mishkin
23,118 PointsThe reason it works is because you have the dependencies in your package.json file. without that you would need to do a npm init to create a package.json file then add the programs you want to include.
jlampstack
23,932 Pointsjlampstack
23,932 PointsThat did the job, many thanks!
Jacob Mishkin
23,118 PointsJacob Mishkin
23,118 PointsNot a problem.