Comments (11)
- 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.
- 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.
@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.
@ixti Prepackaged ubuntu's node.js sucks.
@phun-ky use nvm and be happy :) , ixti is right.
from js-yaml.
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../..$ npm install js-yaml -g
sudo: npm: command not found
alexander@alexander-work:
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.
remove node_modules
folder, that contains js-yaml, and try again
from js-yaml.
Hm, I removed the js-yaml
folder from the .npm
folder, and now it works! Thanks for the patience and help!
from js-yaml.
Same problem, and I remove ~/.npm/js-yaml
and it works for me too.
Thanks
from js-yaml.
I'm having the same issue as @ramkam.
from js-yaml.
@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.
@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.
@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)
- YAML merge tag results in bad indentation of a mapping entry HOT 5
- Some timestamps are not parsed as such
- Query in parsing quotes. HOT 1
- Using Frogbot to scan this repository
- Demo link form NPM readme not available HOT 1
- Convert specific property to hexadecimal while keeping other numbers in base Decimal HOT 1
- Unmatched quotes at the end of a value not caught as issue
- Are schemas broken? HOT 1
- Typescript is not evil HOT 3
- Is it possible to get rid of schema? HOT 2
- How to not lose comments and blank lines when js objects and yaml are converted to each other? HOT 4
- how to remove the unwanted indentation
- Quotes not preserved when reading YAML, then dumping it. HOT 2
- Custom type with the multiple possible kinds HOT 1
- dumpfunction error
- Yaml Parsed Object with position information HOT 1
- Key starting with a colon `:`
- export anchors(refs)
- Don't rely on `Object.prototype.toString` to detect object type. HOT 2
- Blocks made with pipes have a leading new line while dumping
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-yaml.