Thread:Project:Support desk/Too many dependencies/reply (2)

The reason I use the developer setup is because there is some problem with my server repository, and therefore I am not able to install packages properly using the Parsoid setup page.

I somehow manage to install nodejs, and when I do an npm install in the parsoid directory, I get the error shown below. I am not able to use sudo either. When I use sudo npm install, I get the error "sudo: npm: command not found". The original ownership and permissions of the parsoid directory was root:root and 750. I changed it to web:web (this is the apache ownership used in my server) and 775.

[aigini_agss@aamy-aamsapp01 parsoid]$ npm install

npm ERR! install Couldn't read dependencies npm ERR! Error: EACCES, open '/home/web/microsite/mediawiki/parsoid/package.json' npm ERR! { [Error: EACCES, open '/home/web/microsite/mediawiki/parsoid/package.json'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/home/web/microsite/mediawiki/parsoid/package.json' } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 2.6.32-279.5.1.el6.x86_64 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! cwd /home/web/microsite/mediawiki/parsoid npm ERR! node -v v0.10.30 npm ERR! npm -v 1.4.21 npm ERR! path /home/web/microsite/mediawiki/parsoid/package.json npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, open '/home/web/microsite/mediawiki/parsoid/package.json' 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 2.6.32-279.5.1.el6.x86_64 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! cwd /home/web/microsite/mediawiki/parsoid npm ERR! node -v v0.10.30 npm ERR! npm -v 1.4.21 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! /home/web/microsite/mediawiki/parsoid/npm-debug.log npm ERR! not ok code 0 [aigini_agss@aamy-aamsapp01 parsoid]$

Please help me resolve this. Thanks in advance!