1

I have been working on a site for several weeks, and just recently I ran into a problem. Now whenever I try to run gulp or JSPM, I get the following errors:

-bash: gulp: command not found

-bash: jspm: command not found

Uninstalling and reinstalling Node and NPM hasn't seemed to have helped. I've also installed both Gulp and JSPM globally just now, and still have the same issue.

I'm working on a Mac while a colleague of mine is using Windows. Using the same codebase, everything seems to be working for him fine in Windows.

In case it helps, here's what my $PATH looks like: /usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:

I'm happy to provide more details, although I'm not sure what other information would help.

1
  • What does npm ls -g --depth=0 show? Commented Sep 2, 2015 at 0:27

2 Answers 2

2

Adding this here for any googlers: for a Windows 10 user you need to add %USERPROFILE%\AppData\Roaming\npm to your Path variable

  • Right click on start, choose System
  • Click Advanced System Settings on the left
  • Under the Advanced tab select Environment Variables
  • Find Path in the System Variables section, select it and then click Edit
  • Click New and type in %USERPROFILE%\AppData\Roaming\npm
  • Restart your terminal, it should now recognize any modules you have installed globally
Sign up to request clarification or add additional context in comments.

Comments

0

I followed the instructions from here, and it seems to have fixed it.

Now my $PATH has /Users/%USERPROFILE%/.node/bin included in it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.