Skip to content

npm won't run the command. #32

Description

@ehne

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

Activity

  1. achingbrain commented on Jul 25, 2016

    @achingbrain
    Member

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

  2. ehne commented on Jul 26, 2016

    @ehne
    Author

    its fairly large so i have put it on hastebin
    here

  3. achingbrain commented on Jul 26, 2016

    @achingbrain
    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?
  4. ehne commented on Jul 26, 2016

    @ehne
    Author
    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. [-]>
  5. achingbrain commented on Jul 26, 2016

    @achingbrain
    Member

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

  6. ehne commented on Jul 26, 2016

    @ehne
    Author

    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

    [-]>

  7. achingbrain commented on Jul 26, 2016

    @achingbrain
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions