I have complete project in Visual Studio and I want it wrap to PhoneGap. I can't install PhoneGap, when I am writing to command line this: npm install -g phonegap, so I get this:
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodeJs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\Users\Marek
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ENOGIT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Marek\npm-debug.log
npm ERR! not ok code0
I installed Git GUI in: C:\Users\Marek, but still doesn't work.
You have to install git the command line version to do this. The GUI version(I don't know which one that is) probably won't work. Get it from here: http://git-scm.com/
You should be able to type git and not get an error on the command line before you use npm
Related
I am running windows 10 with node 4.2.2. I am trying to set up to work with my arduino but i keep running into issues installing serialport. Nothing I can find is helping. These are the errors I get when i run npm install serialport
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "serialport" "-g"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! serialport#2.0.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport#2.0.2 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\Users\john\Desktop\node-ardx\node_modules\johnny-five\npm-debug.log
Make sure you have Python 2.7 installed. If you do, it may be an issue with the C++ compiler.
Install Microsoft Build Tools 2015 (https://www.microsoft.com/en-us/download/details.aspx?id=48159)
Then, on the cmd line change the default compiler to VS2015 :
$ npm config set msvs_version 2015
And to be extra sure :
$ set VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140
If you now try to install serialport you'll get a couple of yellow warnings but installs without any issue.
Cheers!
When trying to install ionic framework on my mac via node.js using the command $ npm install -g cordova ionic I am getting the following errors
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v0.12.5
npm ERR! npm v2.12.0
npm ERR! Attempt to unlock /usr/local/lib/node_modules/cordova, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v0.12.5
npm ERR! npm v2.12.0
npm ERR! Attempt to unlock /usr/local/lib/node_modules/ionic, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/kernelliott/npm-debug.log
Any idea as to why I am getting these errors?
Use sudo as you are installing in system directory (with the -g, global flag):
sudo npm install -g cordova ionic
I have installed node-js and set path to the bin folder, using Windows 7 .
using cmd , i am installing cordova, with following command.
npm install -g cordova
it gives the following error,
C:\Users\admin>npm install -g cordova
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! shasum check failed for C:\Users\admin\AppData\Local\Temp\npm-27416-181
c77ac\registry.npmjs.org\cordova-app-hello-world\-\cordova-app-hello-world-3.9.0
.tgz
npm ERR! Expected: 5866d8fed5582686c68ec59a6d1097c4ec0fcc4b
npm ERR! Actual: 33c6d47bbc528da2c1b9b8e6ae592c2f5dba371f
npm ERR! From: https://registry.npmjs.org/cordova-app-hello-world/-/cordova-
app-hello-world-3.9.0.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\admin\npm-debug.log
How to get resolve the problem ?
You need to Run as Administrator. Right click CMD and choose Run as Administrator. For mac, using this command, sudo npm install -g cordova.
Try using npm I -g cordova --verbose. It will log all the things in console. Watch it for any specific error. Where its struck.
I try install Karma with command line: npm install karma and always receive the same error:
npm ERR! Error: No compatible version found: anymatch#'^1.1.0'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.1.1","0.2.0","1.0.0","1.1.0"]
npm ERR! at installTargetsError (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:709:10)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:631:10
npm ERR! at saved (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "karma"
npm ERR! cwd C:\users\jose
npm ERR! node -v v0.10.9
npm ERR! npm -v 1.2.24
As you can see I am using NodeJS x64 v0.10.9 and npm v1.2.24. I tried with x86 versions with no result.
I solve this problem upgrading the version of npm from 1.2.24 to 2.5.0 with the following steps:
Navigate to C:\Program Files (x86)\nodejs or C:\Program Files\nodejs, depending on the version installed with cmd.exe.
Run the installation without -g: npm install npm.
Then run the Karma installation command: npm install karma.
I found the steps to upgrade npm and other common problems here.
I need componentjs to build a javascript library taken from github.
Then I installed Node.js for Windows 64bits, and when I try to install componentjs or component-builder, I get the following errors that I don't understand:
C:\Users\Kevin>npm install component
npm WARN `git config --get remote.origin.url` returned wrong result (git://githu
b.com/ariya/esprima.git) undefined
npm WARN `git config --get remote.origin.url` returned wrong result (git://githu
b.com/ariya/esprima.git) undefined
npm ERR! git clone git://github.com/ariya/esprima.git undefined
npm ERR! git clone git://github.com/ariya/esprima.git undefined
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "component"
npm ERR! cwd C:\Users\Kevin
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ENOGIT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Kevin\npm-debug.log
npm ERR! not ok code 0
Does anyone know what I'm doing wrong?
Problem solved, thanks to CD..
Just install msysgit (git for windows).
During the installation, it's prompted if you want to automatically add git to your PATH environment variable.