Error installing Karma with NodeJS - node.js

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.

Related

Ember JS on Rasp PI

I was trying Ember JS on my RASP Pi. Unfortunately i was unable to proceed with ember installation with my npm due to below error :
npm ERR! Error: No compatible version found: broccoli-merge-trees#'^2.0.0'
npm ERR! Valid install targets:
npm ERR! ["0.1.3","0.1.4","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","1.0.0","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","2.0.0"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:685:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:607:10
npm ERR! at saved (/usr/local/lib/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 Linux 4.9.35-v7+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ember-cli#2.13"
npm ERR! cwd /home/pi/Documents/myWorkspace/node-v0.10.2
npm ERR! node -v v0.10.2
npm ERR! npm -v 1.2.15
NPM version currently installed on my pi is :1.2.15
Any help is appreciated
Your version of Node looks like it is too old.
Try installing the latest version of Node by running the following commands:
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb

ionic install npm error on window10

I installed nodejs,apache ant, JDK and android JDK.
after npm install -g cordova. so very good install!!
but... npm install -g ionic...
error code
C:\Users\dltls>npm install -g ionic
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dltls\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\np
m-cli.js" "install" "-g" "ionic"
npm ERR! node v6.1.0
npm ERR! npm v3.9.0
npm ERR! shasum check failed for C:\Users\dltls\AppData\Local\Temp\npm-756-b0347231\registry.npmjs.org\ionic\-\ionic-1.7
.14.tgz
npm ERR! Expected: af493d5df4688d917d778b0934d1739b9be6efe6
npm ERR! Actual: fab0cac875d9881f84f09df86dd8229035deb772
npm ERR! From: https://registry.npmjs.org/ionic/-/ionic-1.7.14.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\dltls\npm-debug.log
I seach Internet... npm install -g npm and npm set registry https://registry.npmjs.org and npm cache clean but error exist.. help me!!

Errors Installing Ionic Framework on Mac

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

Errors with initialization modules using npm

Cannot install gulp and others plugins because of the error, but express, socket.io has successfully been installed
npm ERR! Error: No compatible version found: archy#'^0.0.2'
npm ERR! Valid install targets:
npm ERR! ["0.0.0","0.0.1","0.0.2","1.0.0"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:685:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:607:10
npm ERR! at saved (/usr/local/lib/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!
npm ERR! or email it to:
npm ERR!
npm ERR! System Linux 2.6.32-042stab090.5
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "gulp" "-g"
npm ERR! cwd /
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
The problem is that the version of npm that you are using does not support semver's caret (^) operator in package versions. Upgrade to the latest stable version of node.js (v0.10.32 as of this writing) and the problem should be fixed.

PhoneGap - get started in Visual Studio 2012

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

Resources