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 trialSergi Oca
7,981 PointsInstalling chai errors
I'm running npm install chai --save-dev but I get a lot of errors in the console like:
npm WANR enoent: no such file or directory, open C:Users\me\package.json npm WANR Me No description npm WANR me No repository field ... Long etc.
npm install chai works, but I still get the errors after it, the package.json file exists inside the chai folder.
Also I'd like to point out that "touch" is not available in Windows, you guys should mention the alternative.
2 Answers
Michael Liendo
15,326 PointsThe warnings won't crash your code or anything. They're just saying that in your package.json file you haven't specified anything in your description field or repository field. They're useful if you plan on shipping to NPM, but as you noticed they won't crash your program or anything.
Adam Fields
Full Stack JavaScript Techdegree Graduate 37,838 PointsRE: Also I'd like to point out that "touch" is not available in Windows, you guys should mention the alternative.
Touch is a Bash command (Linux, macOS).
On Windows I use PowerShell. The command you're looking for is New-Item
or ni
for short. You can also install Bash on Windows if you want the real Linux experience.
Sergi Oca
7,981 PointsSergi Oca
7,981 PointsI see that I can actually use it, Thank you Michael.