Giter VIP home page Giter VIP logo

Comments (11)

puzrin avatar puzrin commented on September 28, 2024
  1. Your node.js version (that includes npm) is very outdated. Even if you need 0.6 branch, please upgrade to latest first (0.6.22 now). We can not support EVERY node release version, only latest one.
  2. If possible, switch to latest node branch 0.8.xx, that will simplify our life :) .

We do use latest ubuntu, and have no problems. Your bug is 99.9% related to npm.

from js-yaml.

ixti avatar ixti commented on September 28, 2024

@puzrin He's using prepackaged version of Node.JS: http://packages.ubuntu.com/precise/nodejs
@phun-ky Consider using nvm which gives you freedom and ability to use the latest npm and node versions. Even ruby (+ ruby gems) have similar problems with prepackaged solutions (that's why people use rvm and rbenv). For me it looks like a bug of prepackaged npm.

from js-yaml.

puzrin avatar puzrin commented on September 28, 2024

@ixti Prepackaged ubuntu's node.js sucks.

@phun-ky use nvm and be happy :) , ixti is right.

from js-yaml.

phun-ky avatar phun-ky commented on September 28, 2024

I must be missing something here. I've installed nvm, and then installed the latest nodejs version (0.8.8), and i still get the same errors:

alexander@alexander-work:~../..$ npm install js-yaml
npm http GET https://registry.npmjs.org/js-yaml
npm http 304 https://registry.npmjs.org/js-yaml
npm WARN excluding symbolic link bin/js-yaml -> js-yaml.js
npm http GET https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/underscore
npm ERR! Error: ENOENT, chmod '../../node_modules/js-yaml/bin/js-yaml.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! [email protected]

npm ERR! System Linux 3.2.0-29-generic
npm ERR! command "/home/alexander/nvm/v0.8.8/bin/node" "/home/alexander/nvm/v0.8.8/bin/npm" "install" "js-yaml"
npm ERR! cwd ../..
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! path ../../node_modules/js-yaml/bin/js-yaml.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.2.0-29-generic
npm ERR! command "/home/alexander/nvm/v0.8.8/bin/node" "/home/alexander/nvm/v0.8.8/bin/npm" "install" "js-yaml"
npm ERR! cwd ../..
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! ../../npm-debug.log
npm ERR! not ok code 0
alexander@alexander-work:../..$ sudo npm install js-yaml
sudo: npm: command not found
alexander@alexander-work:
../..$ npm install js-yaml -g
npm http GET https://registry.npmjs.org/js-yaml
npm http 304 https://registry.npmjs.org/js-yaml
npm WARN excluding symbolic link bin/js-yaml -> js-yaml.js
npm http GET https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/underscore
npm ERR! Error: ENOENT, chmod '/home/alexander/nvm/v0.8.8/lib/node_modules/js-yaml/bin/js-yaml.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! [email protected]

npm ERR! System Linux 3.2.0-29-generic
npm ERR! command "/home/alexander/nvm/v0.8.8/bin/node" "/home/alexander/nvm/v0.8.8/bin/npm" "install" "js-yaml" "-g"
npm ERR! cwd ../..
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! path /home/alexander/nvm/v0.8.8/lib/node_modules/js-yaml/bin/js-yaml.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.2.0-29-generic
npm ERR! command "/home/alexander/nvm/v0.8.8/bin/node" "/home/alexander/nvm/v0.8.8/bin/npm" "install" "js-yaml" "-g"
npm ERR! cwd ../..
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! ../../npm-debug.log
npm ERR! not ok code 0
alexander@alexander-work:~../..$

from js-yaml.

puzrin avatar puzrin commented on September 28, 2024

remove node_modules folder, that contains js-yaml, and try again

from js-yaml.

phun-ky avatar phun-ky commented on September 28, 2024

Hm, I removed the js-yaml folder from the .npm folder, and now it works! Thanks for the patience and help!

from js-yaml.

Filirom1 avatar Filirom1 commented on September 28, 2024

Same problem, and I remove ~/.npm/js-yaml and it works for me too.

Thanks

from js-yaml.

neagle avatar neagle commented on September 28, 2024

I'm having the same issue as @ramkam.

from js-yaml.

ixti avatar ixti commented on September 28, 2024

@neagle Can you please provide little bit more details (OS, node version, npm version, trace / debug / error output)? Have you tried solutions posted here? If you feel you have met another issue (that has no solution here), please open a new ticket.

from js-yaml.

neagle avatar neagle commented on September 28, 2024

@ixti: I posted the error output here: https://github.com/isaacs/npm/issues/3031

Here it is again for reference:

sudo npm install -g js-yaml
npm http GET https://registry.npmjs.org/js-yaml
npm http 304 https://registry.npmjs.org/js-yaml
npm http GET https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore.string
npm ERR! error installing [email protected]
npm ERR! Error: ENOENT, chmod '/usr/lib/node_modules/js-yaml/bin/js-yaml.js'
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]
npm ERR!
npm ERR! System Linux 2.6.39.1-linode34
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "js-yaml"
npm ERR! cwd /home/neagle/environment
npm ERR! node -v v0.8.16
npm ERR! npm -v 1.1.0-beta-7
npm ERR! path /usr/lib/node_modules/js-yaml/bin/js-yaml.js
npm ERR! code ENOENT
npm ERR! message ENOENT, chmod '/usr/lib/node_modules/js-yaml/bin/js-yaml.js'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/neagle/environment/npm-debug.log
npm not ok

I was finally able to resolve this by updating npm via "sudo npm install -g npm" and clearing npm's cache ("sudo npm clear cache").

Is there a reason older versions of npm choked on this? What's the minimum required version of npm?

from js-yaml.

puzrin avatar puzrin commented on September 28, 2024

@neagle that's npm bug with all modules, that have 'bin' directive in package.json . Search "install" keyword in issues tracker, and you will see, that you are not the first.

Something wrong with ./node_modules/.bin/xxx symlinks override. Don't know why it happens sometime.

Thank you for report to npm

from js-yaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.