phonegap npm install error - node.js

I was installing phone gap.
In phone gap website its shows the commands and instructions.
I installed nodejs and executed the commands.
But resulted in error.
I tried
Node.js NPM error when installing PhoneGap on Windows 8
Can u give a step by step instruction ?
I have downloaded phonegap.zip
where do i place this ?
C:\Program Files\nodejs>npm install -g phonegap
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\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ENOGIT
npm ERR! Error: EPERM, open 'C:\Program Files\nodejs\npm-debug.log'
npm ERR! { [Error: EPERM, open 'C:\Program Files\nodejs\npm-debug.log']
npm ERR! errno: 50,
npm ERR! code: 'EPERM',
npm ERR! path: 'C:\\Program Files\\nodejs\\npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Program Files\nodejs\npm-debug.log
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, open 'C:\Program Files\nodejs\npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files\nodejs\npm-debug.log
npm ERR! not ok code 0

I installed GIT and it worked!

Related

Error "shasum check failed" when try to install firebase-tools

I'm getting this error when try to install firebase-tools:
PS D:\Projects\Uni\firebase-functions-hello-world> npm install -g firebase-tools
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" "-g" "firebase-tools"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! shasum check failed for C:\Users\AdMin\AppData\Local\Temp\npm-8448-fdc26aac\registry.npmjs.org
\jju\-\jju-1.3.0.tgz
npm ERR! Expected: dadd9ef01924bc728b03f2f7979bdbd62f7a2aaa
npm ERR! Actual: 2a552ad636b1e23979c677ab9f360cf1ac578f89
npm ERR! From: https://registry.npmjs.org/jju/-/jju-1.3.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! D:\Projects\Uni\firebase-functions-hello-world\npm-debug.log
PS D:\Projects\Uni\firebase-functions-hello-world>
i also posted this issue on github which is https://github.com/firebase/firebase-tools/issues/271
Run the command again logged in as administrator.

Error While Installing cordova via node.js

while installing cordova through NPM i am getting these error.
C:\Users\460862>npm install -g cordova
npm ERR! Windows_NT 6.1.7601
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 v6.1.0
npm ERR! npm v3.8.6
npm ERR! shasum check failed for C:\Users\460862\AppData\Local\Temp\npm-9188-001
278c9\registry.npmjs.org\bplist-parser-\bplist-parser-0.1.1.tgz
npm ERR! Expected: d60d5dcc20cba6dc7e1f299b35d3e1f95dafbae6
npm ERR! Actual: b810dff385201a3be7e8c86bdf7c71072d9a0cc7
npm ERR! From: http://registry.npmjs.org/bplist-parser/-/bplist-parser-0.1.1
.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\460862\npm-debug.log
Help me resolve.

Install cordova on windows 10

I have problem installing cordova on windows 10, but it worked on another system. What am I doing wrong? I'm trying to install cordova using this command:
npm install -g cordova
But I get this error:
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" "-g" "cordova"
npm ERR! node v5.1.0
npm ERR! npm v3.5.0
npm ERR! error:0906D06C:PEM routines:PEM_read_bio:no start line
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
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" "-g" "cordova"
npm ERR! node v5.1.0
npm ERR! npm v3.5.0
npm ERR! path c:\npm-debug.log.12f467e1fd39888240297f05bb2d353b
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'c:\npm-debug.log.12f467e1fd39888240297f05bb2d353b'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, open 'c:\npm-debug.log.12f467e1fd39888240297f05bb2d353b']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'c:\\npm-debug.log.12f467e1fd39888240297f05bb2d353b' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
As you see it said run command as an administrator in last line, so I used sudo before my command:
sudo npm install -g cordova
and then I get this error:
'sudo' is not recognized as an internal or external command, operable program or batch file.
I also run this command npm cache clean
But I get the same error.
Update:
I run node as an administrator but I get this error:
C:\Windows\system32>npm install -g ionic
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" "-g" "ionic"
npm ERR! node v5.1.0
npm ERR! npm v3.3.12
npm ERR! error:0906D06C:PEM routines:PEM_read_bio:no start line
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
What am I doing wrong? Is this problem related to my OS or what?
Any help would be appreciated.
Windows does not have sudo command, try right click your cmd application and use run as administrator option.
Additional info: https://technet.microsoft.com/ru-ru/library/cc947813(v=ws.10).aspx
Try updating npm.
npm install npm -g --ca=null
npm config set ca=""

nodejs npm package install failed

I am new to nodejs, and I have just installed it in my Windows 7 PC. The next thing I try to do is to install express.js package via npm npm install express --save, and I got following error messages
npm ERR! fetch failed http://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.6.tgz
npm ERR! Error: 403 Forbidden
npm ERR! at WriteStream.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\fetch.js:58:12)
npm ERR! at WriteStream.emit (events.js:117:20)
npm ERR! at evalmachine.<anonymous>:1610:14
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:102:5
npm ERR! at Object.oncomplete (evalmachine.<anonymous>:108:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "--save"
npm ERR! cwd C:\temp\NodeJS_POC
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! not ok code 0
Anybody knows why?
It turns to be our proxy server actually blocks http://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.6.tgz

Installing Cordova CLI using npm on windows xp

I am getting the following errors while installing cordova CLI using npm tool from cmd.
npm install -f -g cordova
npm WARN using --force I sure hope you know what you are doing.
npm ERR! Error: connect EAFNOSUPPORT
npm ERR! at errnoException (net.js:904:11)
npm ERR! at connect (net.js:766:19)
npm ERR! at net.js:845:9
npm ERR! at asyncCallback (dns.js:68:16)
npm ERR! at Object.onanswer [as oncomplete] (dns.js:121:9)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-f" "-g" "cordova"
npm ERR! cwd C:\Documents and Settings\AmarJyotiG
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! syscall connect
npm ERR! code EAFNOSUPPORT
npm ERR! errno EAFNOSUPPORT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Documents and Settings\AmarJyotiG\npm-debug.log
npm ERR! not ok code 0
I am relatively very new to using cordova. Any help !

Resources