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 trialMark Jones
Full Stack JavaScript Techdegree Graduate 29,362 Pointsnpm install not working
npm does not recognize the @ symbol in npm install @angular/http@2.4.2 --save --save-exact. Unrecognized token.
2 Answers
Neil McPartlin
14,662 PointsHi Mark. Using the command exactly as you wrote it, has just worked for me. I'm on Windows 7 and using the terminal that comes with Visual Studio Code.
That said, you are not alone...
... Reading this, it seems the problem can occur depending on which terminal you are using. They mention Windows Powershell being problematic and sure enough, when I tried that, it failed just like you said.
So I tried a suggested solution ...
npm install "@angular/http@2.4.2" --save --save-exact
... and this worked with Windows Powershell. So you have 2 options, try this or try a different terminal.
Mark Jones
Full Stack JavaScript Techdegree Graduate 29,362 PointsThanks Neil. I came to conclusion as well. I am using something called Cmder now and that works fine.