Can't clone git repository after installing latest version npm - node.js

I just downloaded and installed node and the latest version of npm.
When I'm trying to clone git repository I get
"'git' is not recognized as an internal or external command, operable program or batch file." error
I tried installing git specifically from npm and it seems to install some packeges but while trying to clone still see the same message.
any idea how to work it out?

Git isn't installed via npm. The package you found does something with git repos (don't know, never used it - just a quick glance on its description), but it doesn't install git.
To install git on linux, https://git-scm.com/download/linux
To install git on windows, https://git-scm.com/download/windows
To install git on mac, (you may have guessed the link) https://git-scm.com/download/mac

Related

Cant use npm install on older commits from github that worked a few weeks ago

I download a project from my repo on git and when I use the command
git checkout HEAD~1- I Navigated to one commit backward, and when I try to use npm install I get this error:
I tried to delete the package-lock.json- doesn't fix the issue
I tried to use npm ci- doesn't fix the issue
I tried using npm install --force and npm install --legacy-peer-deps - doesn't fix the issue
I tried to go to one later commit backward again(2 commits backward from master) using git checkout HEAD~1
and still facing this error:
I don't understand why I can't install those dependencies and run the project on older commits as I used to...
I don't have any node_modules in my folder too!
Please any advice will be welcome

Error Message: It looks like you are missing some dependencies you need to get Electron running

After globally installing electron-forge with npm install -g electron-forge any command I enter in the terminal related to electron-forge gives me the following message:
It seems like it's missing some dependencies you need to run Electron.
Make sure you have git and Node.js version 6.0.0+ installed
I don't know why it tells me that it is missing git and Node which both installed both locally and globally versions 0.1.5 and 14.0.0 respectively.
git 0.1.5 is a partial implementation of access to git object database; for other not implemented things it requires native git command line.

npm install is not working on botkit starter facebook project

I would like to develop a chatbot and then chose botkit as the tool to use. Following the steps to install it as described here,I first cloned the repository to my local disk D: this worked but the second step command (for Installing dependencies, including Botkit:)
cd botkit-starter-facebook
npm install
doesn't work giving me the error :
I don't understand what that means so it is hard for me to solve it.
I am using windows 7 x64bits pack 1 and node version 6.9.5 and npm version 3.10.10
Git was not in the path system environment variable and I add it but I am still getting the same error.
This is probably because git is not installed or not in the path. npm is trying to pull some dependency from github but unable to clone it as git is not available. Once you have git working, this should work.

./configure not present in node.js tar

I'm following a Node.js tutorial for compiling Node from Source with NPM. The issue is that while previous builds contain the configure script, the most recent tar, 6.9.2, does not but that's a part of the steps required for compiling from source. If I download an older version like 0.1.5, the configure script is there. The tutorial requests I do a ./configure but there's nothing resembling configure after I unzip 6.9.2. Here's the tutorial I'm following: https://www.digitalocean.com/community/tutorials/how-to-compile-node-js-with-npm-from-source-on-centos-6
What am I doing wrong?
If you have downloaded the source from
https://nodejs.org/dist/v6.9.2/node-v6.9.2.tar.gz the configure script should be there.
Also, see the github page for node.js:
https://github.com/nodejs/node
where configure script is present.
I guess you downloaded it from elsewhere? Nevertheless, here is the standard build procedure for Node:
https://github.com/nodejs/node/blob/master/BUILDING.md
Hope this helps.
If you have CentOS 6.x, and have enabled the EPEL repository, you can use yum to install node/npm:
$ sudo yum install npm

Problem installing socket.io on Fedora Core

I'm trying to install socket.io on my machine, but I keep encountering errors when I run npm install socket.io as directed on their website. I'm not sure if I have version incompatibilities for npm or node.js or if I'm simply missing something obvious. As far as I can tell, I have the most recent stable version of both of them.
When I run the install command, the console outputs 40+ errors, and at the end I am given the line npm not ok. Any ideas as to what is going wrong?
What is the error?
Are you installing npm using code from git? I can only guess that you are not using a stable code, because the master branch from git is often unstable.
If that is the case, what you can do is to get the latest code from the git repository and install it again.
$ cd npm
$ git pull
$ make install
Hope it will solved your problem.
You need to provide an error log if you want anyone to try and troubleshoot your problem. It would also be helpful to know whether you installed Node and NPM from source or RPM. Furthermore, if you installed from source, did you do a standard install or did you make customisations?
If you are able to start from scratch, I suggest following the steps below and seeing how you go. Installing into your home directory won't require root and it makes it easier to clear everything out if you need to start again.
Install the stable release of Node in your home directory (use ./configure --prefix=~/Node/)
Set your path as appropriate (ie. PATH=/home/user/Node/bin:$PATH)
Run the standard NPM installer (curl http://npmjs.org/install.sh | sh)

Resources