Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
How can I install NPM or configure 'typescript.com' in user settings on my Visual Studio Code?
And whenever I try to use Node.js in the terminal, I get this message " 'node' is not recognized as an internal or external command, operable program or batch file."
Please how can I fix this problem and run command line applications in my text editor?
Ari Misha19,268 Points
node --version or
You can also go for other package managers like Yarn without npm. Follow the steps if you're on Mac:
$ brew install yarn //this installation comes with npm automatically installed to your machine
$ brew install yarn --without-node //installs without node
There is another way to install yarn with npm and node:
$ sudo port install yarn
And for some reasons, the path for yarn is not set, try this in your terminal:
$ export PATH="$PATH:`yarn global bin`"
This command will set yarn globally and add the path to the path variable.