Command "npm" is not recognized by Command Prompt

4

I have a project with a package.json , in it I have everything configured.

I just made the clone of this same project on another machine, my git clone worked without problems.

But when I give the command npm install in the CMD to include the modules I'm going to use, the following message appears:

  

'npm' is not recognized as an internal command   or external, operable program or batch file.

Does anyone know how to solve it?

    
asked by anonymous 02.06.2014 / 23:00

3 answers

7

I can see two possible problems:

  • NodeJS is not installed
  • NodeJS is not in the %% Windows environment variable
  • In the second case try to add PATH (or the directory where the Node was installed) to the environment variable.

    See: link

        
    03.06.2014 / 13:43
    2

    Install node.js on the destination machine of your app, this will correct your problem.

        
    03.06.2014 / 00:13
    2

    In Windows 64 Bit - Pt.Br:
    Open Run and type:
    C: \ Windows \ SysWOW64 \ cmd.exe
    In the Command Prompt that opens, type:
    CD ..
    CD .. CD Program Files
    CD nodejs
    npm install -g phonegap

        
    10.08.2014 / 15:43