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

npm won't run the command. #32

Open
ehne opened this issue Jul 24, 2016 · 7 comments
Open

npm won't run the command. #32

ehne opened this issue Jul 24, 2016 · 7 comments

Comments

@ehne
Copy link

ehne commented Jul 24, 2016

every time i try to run the code nodebot-workshop
it states bash:nodebot-workshop command not found
I have had this problem with everything that i tried installing using NPM

@achingbrain
Copy link
Member

Could you please post the entire output of the command npm install -g nodebot-workshop

@ehne
Copy link
Author

ehne commented Jul 26, 2016

its fairly large so i have put it on hastebin
here

@achingbrain
Copy link
Member

Hmm, a bunch of that looks weird:

  1. It appears to be trying to rename a bunch of directories under /Users/useruser/.npm-packages/.npm-packages/... - the double .npm-packages looks odd - does this directory exist?
  2. ENOENT during npm install npm/npm#9633 seems to suggest running npm cache clean might help, failing that you could try deleting the directory /Users/useruser/.npm-packages
  3. Could you post the contents of ~/.npmrc if it exists? (remove any auth keys before you do)
  4. When an install fails, there's usually a path to npm-debug.log file at the end - what you posted looks truncated, was there any more output?
  5. If there was an npm-debug.log file, could you please post it's contents?

@ehne
Copy link
Author

ehne commented Jul 26, 2016

  1. there is only one .npm_packages, however there is a .npm_packages folder inside of .npm_packages
    2.that didn't work
    3..npmrc does not exist user-user-3:~ useruser$ cd /Users/useruser/.npm .npm/ .npm-packages/ .npmrc user-user-3:~ useruser$ cd /Users/useruser/.npmrc -bash: cd: /Users/useruser/.npmrc: Not a directory
    4.I couldn't find that file
    new output from terminal
    here
    thanks. [-]>

@achingbrain
Copy link
Member

What's the value of your $PATH environmental variable?

@ehne
Copy link
Author

ehne commented Jul 26, 2016

user-user-3:~ useruser$ $PATH -bash: /Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/local/go/bin:/opt/ImageMagick/bin: No such file or directory

[-]>

@achingbrain
Copy link
Member

It looks like you need to add /Users/useruser/.npm-packages/.npm-packages/bin to your path in order to find the nodebot-workshop executable, however this is something the node installer normally does for you so I'm not sure why it's necessary, nor am I sure why you have two nested .npm-packages folders - something may have gone wrong during your installation of node.

I'd open an issue with npm/npm if I were you.

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

No branches or pull requests

2 participants