Error installing karma with angularjs - angularjs

I am going to install karma in my front end to run some TDD tests.
To do this at the first step i run this:
sudo npm install -D karma-jasmine karma-phantomjs-launcher --save
and it seems to me that every thing is fun, here is the result:
npm WARN package.json taksi_client#1.0.0 No description
npm WARN package.json taksi_client#1.0.0 No repository field.
npm WARN package.json taksi_client#1.0.0 No README data
npm http GET https://registry.npmjs.org/karma-phantomjs-launcher
npm http GET https://registry.npmjs.org/karma-jasmine
npm http 304 https://registry.npmjs.org/karma-jasmine
npm http 304 https://registry.npmjs.org/karma-phantomjs-launcher
npm http GET https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/lodash
karma-jasmine#0.3.6 node_modules/karma-jasmine
karma-phantomjs-launcher#0.2.1 node_modules/karma-phantomjs-launcher
└── lodash#3.10.1
and then I ried this command
sudo npm install -g karma --save
but i get the following erorrs. and i do not know how can i fix it?
npm http GET https://registry.npmjs.org/karma
npm http 304 https://registry.npmjs.org/karma
npm ERR! error rolling back Error: EROFS, unlink '/nix/store/a5ibcbcsm473kdr75kj4gpsr28ndnknp-nodejs-0.10.26/lib/node_modules/karma'
npm ERR! error rolling back karma#0.13.15 { [Error: EROFS, unlink '/nix/store/a5ibcbcsm473kdr75kj4gpsr28ndnknp-nodejs-0.10.26/lib/node_modules/karma']
npm ERR! error rolling back errno: 56,
npm ERR! error rolling back code: 'EROFS',
npm ERR! error rolling back path: '/nix/store/a5ibcbcsm473kdr75kj4gpsr28ndnknp-nodejs-0.10.26/lib/node_modules/karma' }
npm ERR! Error: EROFS, unlink '/nix/store/a5ibcbcsm473kdr75kj4gpsr28ndnknp-nodejs-0.10.26/lib/node_modules/karma'
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 Linux 4.2.0-c9
npm ERR! command "/nix/store/a5ibcbcsm473kdr75kj4gpsr28ndnknp-nodejs-0.10.26/bin/node" "/mnt/shared/sbin/npm" "install" "-g" "karma" "--save"
npm ERR! cwd /home/ubuntu/Taxi_Driver/taksi_client
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.3
npm ERR! path /nix/store/a5ibcbcsm473kdr75kj4gpsr28ndnknp-nodejs-0.10.26/lib/node_modules/karma
npm ERR! code EROFS
npm ERR! errno 56
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ubuntu/Taxi_Driver/taksi_client/npm-debug.log
npm ERR! not ok code 0

Related

npm install angular error ubuntu

Helloo, am starting to learn angular and while trying to install angular by npm install angular on ubuntu 16.04LTS am getting the following error:
npm ERR! Linux 4.4.0-64-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "angular"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! getaddrinfo EAI_AGAIN registry.npmjs.org:443
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! /home/hillux/npm-debug.log
some help will be appreciated guys.
Enter command in terminal
npm cache clean
chmod -R 777 directory where u installing npm
eg:(chmod -R 777 /root/mydesktop)
npm install

mac sudo npm install -g protractor Error 404

When I run sudo npm install -g protractor, got the error, looks like there's no that folder/files. Is there anyone who knows how to solve the problem? Thanks very much :)
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "protractor"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code E404
npm ERR! 404 no such package available : #types/node
npm ERR! 404
npm ERR! 404 '#types/node' is not in the
npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 It was specified as a dependency of 'protractor'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm install screenshot
This is reproducible on node 6.9.2. I believe it is an error in npm for this version of node.
❯ nvm install 6.9.2 ⏎
Downloading https://nodejs.org/dist/v6.9.2/node-v6.9.2-darwin-x64.tar.xz...
######################################################################## 100.0%
WARNING: checksums are currently disabled for node.js v4.0 and later
Now using node v6.9.2 (npm v3.10.9)
❯ npm i - g #types/node
npm ERR! addLocal Could not install /Users/cnishina/-
npm ERR! Darwin 16.3.0
npm ERR! argv "/Users/cnishina/.nvm/versions/node/v6.9.2/bin/node" "/Users/cnishina/.nvm/versions/node/v6.9.2/bin/npm" "i" "-" "g" "#types/node"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! path /Users/cnishina/-
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/cnishina/-'
npm ERR! enoent ENOENT: no such file or directory, open '/Users/cnishina/-'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/cnishina/npm-debug.log
After installing 6.9.3, the error goes away:
❯ nvm install 6.9.3
Downloading https://nodejs.org/dist/v6.9.3/node-v6.9.3-darwin-x64.tar.xz...
######################################################################## 100.0%
WARNING: checksums are currently disabled for node.js v4.0 and later
npm i -g #tNow using node v6.9.3 (npm v3.10.10)
❯ npm i -g #types/node
/Users/cnishina/.nvm/versions/node/v6.9.3/lib
└── #types/node#7.0.1
I also suggest installing the latest node 6. At the time of this post, it is node 6.9.4. I have checked installing #types/node also works for node 6.9.4.
Some people with the same problem found that decreasing the version to 4.0.4 helped. Buts seems a frequent error. Still not a cool solution, but seems to work for some.

Angular 2 Quickstart install failing via npm (Link - https://angular.io/docs/js/latest/quickstart.html)

As given in the link I've been trying to get Angular 2 running on my Ubuntu 15.10 machine but I get the following error messages and the install fails.
I also tried to install Angular 2 via the npm package command, that is sudo npm install angular2#2.0.0-alpha.32 but this gave the same sort of errors.
Any help would be appreciated. Thank you.
Here are the errors. The log it mentions at the bottom can't be posted here because it is over a 1000 lines.
sudo npm install
npm WARN package.json angular2-quickstart#1.0.0 No description
npm WARN package.json angular2-quickstart#1.0.0 No repository field.
npm WARN package.json angular2-quickstart#1.0.0 No README data
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'angular/common' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'angular2-quickstart'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 4.2.0-16-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/anshuman/angular2-quickstart
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/anshuman/angular2-quickstart/npm-debug.log
npm ERR! not ok code 0
you must update your node and your npm for the last versions.
node -v
v4.4.7
npm -v
3.10.5
Also try to cleaar your npm cache
npm cache clear

Getting started with AngularJS on ubuntu vagrant virtualbox, npm start fails

I am following the tutorial on
https://docs.angularjs.org/tutorial
to get started with AngularJS on my ubuntu vagrant virtualbox.
I believe that I have followed all of the steps, but I can't get npm start to work.
I get the following response when running npm start:
(test5)vagrant#vagrant-ubuntu-trusty-32:/vagrant/angular-phonecat$ npm start
> angular-phonecat#0.0.0 prestart /vagrant/angular-phonecat
> npm install
...truncated
npm ERR! error rolling back Error: UNKNOWN, unlink '/vagrant/angular-phonecat/node_modules/karma/node_modules/connect/History.md'
npm ERR! error rolling back karma#0.12.37 { [Error: UNKNOWN, unlink '/vagrant/angular-phonecat/node_modules/karma/node_modules/connect/History.md']
npm ERR! error rolling back errno: -1,
npm ERR! error rolling back code: 'UNKNOWN',
npm ERR! error rolling back path: '/vagrant/angular-phonecat/node_modules/karma/node_modules/connect/History.md' }
npm ERR! Error: ENOENT, open '/vagrant/angular-phonecat/node_modules/karma/node_modules/lodash/index.js'
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 3.13.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/angular-phonecat/node_modules/karma/node_modules/lodash/index.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, chmod '/vagrant/angular-phonecat/node_modules/karma/node_modules/colors/lib/custom/trap.js'
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 3.13.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/angular-phonecat/node_modules/karma/node_modules/colors/lib/custom/trap.js
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/karma/node_modules/colors/lib/custom/trap.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/amdefine
npm http GET https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/lru-cache/-/lru-cache-2.2.4.tgz
npm http 200 https://registry.npmjs.org/lru-cache/-/lru-cache-2.2.4.tgz
npm http GET https://registry.npmjs.org/ent
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm http 200 https://registry.npmjs.org/ent
npm http GET https://registry.npmjs.org/ent/-/ent-0.0.7.tgz
npm http 200 https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/utile
npm http GET https://registry.npmjs.org/colors
npm http 200 https://registry.npmjs.org/utile
npm http GET https://registry.npmjs.org/utile/-/utile-0.2.1.tgz
npm http 200 https://registry.npmjs.org/utile/-/utile-0.2.1.tgz
npm http 200 https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/pkginfo/-/pkginfo-0.3.0.tgz
npm http 200 https://registry.npmjs.org/pkginfo/-/pkginfo-0.3.0.tgz
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/selenium-webdriver/2.47.0
npm http GET https://registry.npmjs.org/jasminewd/1.1.0
npm http GET https://registry.npmjs.org/minijasminenode/1.1.1
npm http GET https://registry.npmjs.org/jasminewd2/0.0.6
npm http GET https://registry.npmjs.org/jasmine/2.3.2
npm http GET https://registry.npmjs.org/saucelabs
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/adm-zip/0.4.4
npm http GET https://registry.npmjs.org/q/1.0.0
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/source-map-support
npm http GET https://registry.npmjs.org/html-entities
npm http GET https://registry.npmjs.org/accessibility-developer-tools
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/selenium-webdriver/2.47.0
npm http 304 https://registry.npmjs.org/minijasminenode/1.1.1
npm http 304 https://registry.npmjs.org/jasminewd/1.1.0
npm http 304 https://registry.npmjs.org/jasminewd2/0.0.6
npm http 304 https://registry.npmjs.org/jasmine/2.3.2
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/adm-zip/0.4.4
npm http 304 https://registry.npmjs.org/q/1.0.0
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/source-map-support
npm http 304 https://registry.npmjs.org/html-entities
npm http 304 https://registry.npmjs.org/saucelabs
npm http 304 https://registry.npmjs.org/accessibility-developer-tools
npm WARN engine selenium-webdriver#2.47.0: wanted: {"node":">= 0.12.x"} (current: {"node":"0.10.25","npm":"1.3.10"})
npm http GET https://registry.npmjs.org/exit
npm http GET https://registry.npmjs.org/jasmine-core
npm http GET https://registry.npmjs.org/https-proxy-agent
npm http 304 https://registry.npmjs.org/exit
npm http 200 https://registry.npmjs.org/ent/-/ent-0.0.7.tgz
npm http 304 https://registry.npmjs.org/jasmine-core
npm http 304 https://registry.npmjs.org/https-proxy-agent
npm http 304 https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/agent-base
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/extend
npm http 304 https://registry.npmjs.org/extend
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/agent-base
npm ERR! EEXIST, mkdir '/vagrant/angular-phonecat/node_modules/protractor/node_modules/lodash'
File exists: /vagrant/angular-phonecat/node_modules/protractor/node_modules/lodash
Move it away, and try again.
npm ERR! System Linux 3.13.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/angular-phonecat/node_modules/protractor/node_modules/lodash
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/protractor/node_modules/lodash/LICENSE.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http GET https://registry.npmjs.org/source-map/0.1.32
npm ERR! error rolling back Error: UNKNOWN, unlink '/vagrant/angular-phonecat/node_modules/protractor/node_modules/adm-zip/methods/deflater.js'
npm ERR! error rolling back protractor#2.5.1 { [Error: UNKNOWN, unlink '/vagrant/angular-phonecat/node_modules/protractor/node_modules/adm-zip/methods/deflater.js']
npm ERR! error rolling back errno: -1,
npm ERR! error rolling back code: 'UNKNOWN',
npm ERR! error rolling back path: '/vagrant/angular-phonecat/node_modules/protractor/node_modules/adm-zip/methods/deflater.js' }
npm ERR! Error: ENOENT, lstat '/vagrant/angular-phonecat/node_modules/protractor/node_modules/request/lib/redirect.js'
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 3.13.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/angular-phonecat/node_modules/protractor/node_modules/request/lib/redirect.js
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/protractor/node_modules/request/lib/redirect.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/source-map/0.1.32
npm ERR! Error: ENOENT, open '/vagrant/angular-phonecat/node_modules/protractor/node_modules/accessibility-developer-tools/src/audits/FocusableElementNotVisibleAndNotAriaHidden.js'
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 3.13.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/angular-phonecat/node_modules/protractor/node_modules/accessibility-developer-tools/src/audits/FocusableElementNotVisibleAndNotAriaHidden.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, chmod '/vagrant/angular-phonecat/node_modules/protractor/node_modules/optimist/node_modules/minimist/test/bool.js'
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 3.13.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/angular-phonecat/node_modules/protractor/node_modules/optimist/node_modules/minimist/test/bool.js
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/protractor/node_modules/optimist/node_modules/minimist/test/bool.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, utime '/vagrant/angular-phonecat/node_modules/protractor/node_modules/optimist/node_modules/wordwrap/test/wrap.js'
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 3.13.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/angular-phonecat/node_modules/protractor/node_modules/optimist/node_modules/wordwrap/test/wrap.js
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/protractor/node_modules/optimist/node_modules/wordwrap/test/wrap.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/vagrant/angular-phonecat/node_modules/protractor/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core'
File exists: /vagrant/angular-phonecat/node_modules/protractor/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core
Move it away, and try again.
npm ERR! System Linux 3.13.0-65-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/angular-phonecat/node_modules/protractor/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/protractor/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http GET https://registry.npmjs.org/i
npm http GET https://registry.npmjs.org/ncp
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/deep-equal
npm http GET https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/i
npm http 200 https://registry.npmjs.org/deep-equal
npm http 304 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/ncp
npm http 200 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/i/-/i-0.3.3.tgz
npm http GET https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz
npm http GET https://registry.npmjs.org/ncp/-/ncp-0.4.2.tgz
npm http GET https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http GET https://registry.npmjs.org/semver
npm http 200 https://registry.npmjs.org/i/-/i-0.3.3.tgz
npm http GET https://registry.npmjs.org/ms/0.7.1
npm http 200 https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz
npm http 200 https://registry.npmjs.org/ncp/-/ncp-0.4.2.tgz
npm http 304 https://registry.npmjs.org/semver
npm http 200 https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http 304 https://registry.npmjs.org/ms/0.7.1
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/amdefine
npm http GET https://registry.npmjs.org/minimist/0.0.8
npm http 200 https://registry.npmjs.org/minimist/0.0.8
npm http GET https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz
npm http 200 https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/vagrant/angular-phonecat/node_modules/http-server/node_modules/ecstatic/node_modules/optimist/node_modules/wordwrap/example'
npm ERR! error rolling back ecstatic#0.4.13 { [Error: ENOTEMPTY, rmdir '/vagrant/angular-phonecat/node_modules/http-server/node_modules/ecstatic/node_modules/optimist/node_modules/wordwrap/example']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/vagrant/angular-phonecat/node_modules/http-server/node_modules/ecstatic/node_modules/optimist/node_modules/wordwrap/example' }
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /vagrant/angular-phonecat/npm-debug.log
npm ERR! not ok code 0
npm ERR! weird error 255
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
What is wrong?
I have run apt-get install nodejs-legacy npm
I have the following version:
(test5)vagrant#vagrant-ubuntu-trusty-32:/vagrant/angular-phonecat$ nodejs --version
v0.10.25
(test5)vagrant#vagrant-ubuntu-trusty-32:/vagrant/angular-phonecat$ npm --version1.3.10
The guide indicates that I should have Node.js v0.10.27+, but that seems strange to me as I have followed the guide and have ended up with v0.10.25.
If I need a newer verison of Node.js I would appreciate advice on which file I should download from here:
https://nodejs.org/download/release/v4.2.1/
and also how I should install it once I download it to my vagrant folder.
EDIT
Based on the comments Based I installed nvm (liquidweb.com/kb/…) and changed the currently used version to 0.10.27 (stackoverflow.com/questions/7718313/…). I till get errors when I execute npm start.
vagrant#vagrant-ubuntu-trusty-32:/vagrant/angular-phonecat$ npm start
> angular-phonecat#0.0.0 prestart /vagrant/angular-phonecat
> npm install
...
npm ERR! Error: UNKNOWN, symlink '../shelljs/bin/shjs'
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 Linux 3.13.0-65-generic
npm ERR! command "/home/vagrant/.nvm/v0.10.27/bin/node" "/home/vagrant/.nvm/v0.10.27/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.27
npm ERR! npm -v 1.4.8
npm ERR! path ../shelljs/bin/shjs
npm ERR! code UNKNOWN
npm ERR! errno -1
...
npm ERR! EEXIST, mkdir '/vagrant/angular-phonecat/node_modules/http-server/node_modules/optimist/example'
File exists: /vagrant/angular-phonecat/node_modules/http-server/node_modules/optimist/example
Move it away, and try again.
npm ERR! System Linux 3.13.0-65-generic
npm ERR! command "/home/vagrant/.nvm/v0.10.27/bin/node" "/home/vagrant/.nvm/v0.10.27/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.27
npm ERR! npm -v 1.4.8
npm ERR! path /vagrant/angular-phonecat/node_modules/http-server/node_modules/optimist/example
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/http-server/node_modules/optimist/example/default_hash.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /home/vagrant/.nvm/v0.10.27/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /home/vagrant/.nvm/v0.10.27/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/vagrant/angular-phonecat/node_modules/http-server/node_modules/union/examples'
npm ERR! error rolling back http-server#0.6.1 { [Error: ENOTEMPTY, rmdir '/vagrant/angular-phonecat/node_modules/http-server/node_modules/union/examples']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/vagrant/angular-phonecat/node_modules/http-server/node_modules/union/examples' }
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/mkdirp
npm ERR! error rolling back Error: ETXTBSY, unlink '/vagrant/angular-phonecat/node_modules/karma/node_modules/connect/History.md'
npm ERR! error rolling back karma#0.12.37 { [Error: ETXTBSY, unlink '/vagrant/angular-phonecat/node_modules/karma/node_modules/connect/History.md']
npm ERR! error rolling back errno: 62,
npm ERR! error rolling back code: 'ETXTBSY',
npm ERR! error rolling back path: '/vagrant/angular-phonecat/node_modules/karma/node_modules/connect/History.md' }
npm ERR! Error: ENOENT, lstat '/vagrant/angular-phonecat/node_modules/karma/node_modules/optimist/example/reflect.js'
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 Linux 3.13.0-65-generic
npm ERR! command "/home/vagrant/.nvm/v0.10.27/bin/node" "/home/vagrant/.nvm/v0.10.27/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.27
npm ERR! npm -v 1.4.8
npm ERR! path /vagrant/angular-phonecat/node_modules/karma/node_modules/optimist/example/reflect.js
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/karma/node_modules/optimist/example/reflect.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /home/vagrant/.nvm/v0.10.27/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chmod '/vagrant/angular-phonecat/node_modules/karma/node_modules/useragent/features/index.js'
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 Linux 3.13.0-65-generic
npm ERR! command "/home/vagrant/.nvm/v0.10.27/bin/node" "/home/vagrant/.nvm/v0.10.27/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.27
npm ERR! npm -v 1.4.8
npm ERR! path /vagrant/angular-phonecat/node_modules/karma/node_modules/useragent/features/index.js
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/karma/node_modules/useragent/features/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /home/vagrant/.nvm/v0.10.27/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/vagrant/angular-phonecat/node_modules/karma/node_modules/source-map/build'
File exists: /vagrant/angular-phonecat/node_modules/karma/node_modules/source-map/build
Move it away, and try again.
npm ERR! System Linux 3.13.0-65-generic
npm ERR! command "/home/vagrant/.nvm/v0.10.27/bin/node" "/home/vagrant/.nvm/v0.10.27/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.27
npm ERR! npm -v 1.4.8
npm ERR! path /vagrant/angular-phonecat/node_modules/karma/node_modules/source-map/build
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/karma/node_modules/source-map/build/suffix-source-map.jsm
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /home/vagrant/.nvm/v0.10.27/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /home/vagrant/.nvm/v0.10.27/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/vagrant/angular-phonecat/node_modules/karma/node_modules/colors/lib/custom/trap.js'
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 Linux 3.13.0-65-generic
npm ERR! command "/home/vagrant/.nvm/v0.10.27/bin/node" "/home/vagrant/.nvm/v0.10.27/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.27
npm ERR! npm -v 1.4.8
npm ERR! path /vagrant/angular-phonecat/node_modules/karma/node_modules/colors/lib/custom/trap.js
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/karma/node_modules/colors/lib/custom/trap.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /home/vagrant/.nvm/v0.10.27/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
...
npm ERR! error rolling back Error: ETXTBSY, unlink '/vagrant/angular-phonecat/node_modules/protractor/node_modules/lodash/dist/lodash.compat.js'
npm ERR! error rolling back protractor#2.5.1 { [Error: ETXTBSY, unlink '/vagrant/angular-phonecat/node_modules/protractor/node_modules/lodash/dist/lodash.compat.js']
npm ERR! error rolling back errno: 62,
npm ERR! error rolling back code: 'ETXTBSY',
npm ERR! error rolling back path: '/vagrant/angular-phonecat/node_modules/protractor/node_modules/lodash/dist/lodash.compat.js' }
npm http GET https://registry.npmjs.org/source-map
npm ERR! Error: ENOENT, chmod '/vagrant/angular-phonecat/node_modules/protractor/node_modules/accessibility-developer-tools/src/audits/UnfocusableElementsWithOnClick.js'
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 Linux 3.13.0-65-generic
npm ERR! command "/home/vagrant/.nvm/v0.10.27/bin/node" "/home/vagrant/.nvm/v0.10.27/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.27
npm ERR! npm -v 1.4.8
npm ERR! path /vagrant/angular-phonecat/node_modules/protractor/node_modules/accessibility-developer-tools/src/audits/UnfocusableElementsWithOnClick.js
npm ERR! fstream_path /vagrant/angular-phonecat/node_modules/protractor/node_modules/accessibility-developer-tools/src/audits/UnfocusableElementsWithOnClick.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /home/vagrant/.nvm/v0.10.27/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/source-map
npm ERR! error rolling back Error: ETXTBSY, unlink '/vagrant/angular-phonecat/node_modules/protractor/node_modules/glob/node_modules/minimatch/minimatch.js'
npm ERR! error rolling back glob#3.2.11 { [Error: ETXTBSY, unlink '/vagrant/angular-phonecat/node_modules/protractor/node_modules/glob/node_modules/minimatch/minimatch.js']
npm ERR! error rolling back errno: 62,
npm ERR! error rolling back code: 'ETXTBSY',
npm ERR! error rolling back path: '/vagrant/angular-phonecat/node_modules/protractor/node_modules/glob/node_modules/minimatch/minimatch.js' }
npm ERR! error rolling back Error: ETXTBSY, unlink '/vagrant/angular-phonecat/node_modules/protractor/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js'
npm ERR! error rolling back jasmine#2.3.2 { [Error: ETXTBSY, unlink '/vagrant/angular-phonecat/node_modules/protractor/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js']
npm ERR! error rolling back errno: 62,
npm ERR! error rolling back code: 'ETXTBSY',
npm ERR! error rolling back path: '/vagrant/angular-phonecat/node_modules/protractor/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js' }
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/amdefine
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/minimist
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /vagrant/angular-phonecat/npm-debug.log
npm ERR! not ok code 0
npm ERR! angular-phonecat#0.0.0 prestart: `npm install`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the angular-phonecat#0.0.0 prestart script.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-65-generic
npm ERR! command "/home/vagrant/.nvm/v0.10.27/bin/node" "/home/vagrant/.nvm/v0.10.27/bin/npm" "start"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.27
npm ERR! npm -v 1.4.8
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /vagrant/angular-phonecat/npm-debug.log
npm ERR! not ok code 0
How can this error be solved?

Error while npm install in Angular JS

Im new to Angular JS. I'm following the tutorial which is provided in Angular JS website. I've cloned the git project and when I try for npm install it gives me errors like
npm ERR! Error: failed to fetch from registry: shelljs
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry- client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/bigc/Angular-Tutorial/angular-phonecat/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.5.0-23-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/bigc/Angular-Tutorial/angular-phonecat
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: shelljs
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/bigc/Angular-Tutorial/angular-phonecat/npm-debug.log
npm not ok
Do I need to do anything other than cloning?
Cheers!
when i started sometimes i have foun error too with cloning git repository, make a check for your version of github and update it if you need it, after you do that you can go directly to angularjs's github page, the tutorial you want to see it's in the sample folder, you cant take it form here or cloning directly from the address write on the right of the page.

Resources