Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not a directory '/usr/bin/partial.js' #6

Closed
eMarek opened this issue May 25, 2013 · 6 comments
Closed

Not a directory '/usr/bin/partial.js' #6

eMarek opened this issue May 25, 2013 · 6 comments
Labels

Comments

@eMarek
Copy link

eMarek commented May 25, 2013

Hi,
I want to start my project unsing partail.js (as you show on YouTube video http://www.youtube.com/watch?v=3GMQJki82Lo) but I have some initial problems.

marek@nassenfuss:~/Documents/node$ sudo npm -g install partial.js
[sudo] password for marek: 
npm http GET https://registry.npmjs.org/partial.js
npm http 304 https://registry.npmjs.org/partial.js
/usr/bin/partial.js -> /usr/lib/node_modules/partial.js/bin/partial
npm WARN package.json assert-plus@0.1.2 No repository field.
npm WARN package.json ctype@0.5.2 No repository field.
npm WARN package.json github-url-from-git@1.1.1 No repository field.
partial.js@1.2.3-8 /usr/lib/node_modules/partial.js
marek@nassenfuss:~/Documents/node$ 
marek@nassenfuss:~/Documents/node$ partial.js

fs.js:654
  return binding.readdir(pathModule._makeLong(path));
                 ^
Error: ENOTDIR, not a directory '/usr/bin/partial.js'
    at Object.fs.readdirSync (fs.js:654:18)
    at Object.<anonymous> (/usr/lib/node_modules/partial.js/bin/partial:365:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

Do you have any idea what causes this error?
My node version is v0.10.7.
I get the same error on Ubuntu 13.04 and Mac OS 10.8.3.

@petersirka
Copy link
Collaborator

Hi, thank you for report a problem. I fixed this problem.
Please reinstall partial.js via NPM and give me your feedback:

$ sudo npm install -g partial.js

Thank you.

@eMarek
Copy link
Author

eMarek commented May 25, 2013

I tried it just now and got the same error.

@petersirka
Copy link
Collaborator

I tried it now:
binary

Run this commands:

$ sudo npm install -g partial.js
mkrdir test
cd test
partial.js -version
partial.js

... and send me your screen shot. Thank you.

@eMarek
Copy link
Author

eMarek commented May 26, 2013

It is interesting. On Ubuntu I had to reinstall node.js and now it works like a charm.

Reinstalling node.js on Mac does not help. Here is the screenshot:
screen shot 2013-05-26 at 11 25 00 am

@petersirka
Copy link
Collaborator

@eMarek problem is in NPM. e.g.: partial.js has no dependencies (see to package.json).
One time I had similar problem as you. Try to clean two directories:

/usr/lib/node_modules/
/usr/local/lib/node/

and re-install partial.js ...
Thank you + give me your feedback.

@eMarek
Copy link
Author

eMarek commented May 26, 2013

Thank you!
I had to delete the "partial.js" directory in /usr/local/bin/node and reinstall partial.js modul.
You are my man! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants