{"action":"created","issue":{"url":"https://api.github.com/repos/stephen/airsonos/issues/264","labels_url":"https://api.github.com/repos/stephen/airsonos/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/stephen/airsonos/issues/264/comments","events_url":"https://api.github.com/repos/stephen/airsonos/issues/264/events","html_url":"https://github.com/stephen/airsonos/issues/264","id":125833578,"number":264,"title":"Installation help","user":{"login":"darrendmiller","id":485504,"avatar_url":"https://avatars.githubusercontent.com/u/485504?v=3","gravatar_id":"","url":"https://api.github.com/users/darrendmiller","html_url":"https://github.com/darrendmiller","followers_url":"https://api.github.com/users/darrendmiller/followers","following_url":"https://api.github.com/users/darrendmiller/following{/other_user}","gists_url":"https://api.github.com/users/darrendmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/darrendmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrendmiller/subscriptions","organizations_url":"https://api.github.com/users/darrendmiller/orgs","repos_url":"https://api.github.com/users/darrendmiller/repos","events_url":"https://api.github.com/users/darrendmiller/events{/privacy}","received_events_url":"https://api.github.com/users/darrendmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-10T17:30:17Z","updated_at":"2016-01-10T21:54:07Z","closed_at":null,"body":"I'm having trouble installing airsonos, and pretty new to this stuff, so my guess is I'm just doing something stupid. Can anyone help me finish this off correctly?\r\nI've installed node.js and updates to the latest version of npm. Then started following the terminal instructions:\r\n\r\n    $ git clone https://github.com/stephen/airsonos.git\r\n    $ cd airsonos\r\n    $ npm install -g\r\n\r\nFirst two worked fine, then I get this when I type $npm install -g:\r\n\r\n    airsonos darren$ npm install -g\r\n        \r\n    > airsonos@0.2.5 prepublish /Users/darren/airsonos\r\n    > babel ./lib/ -d ./bin/\r\n    \r\n    sh: babel: command not found\r\n    \r\n    npm ERR! addLocal Could not install /Users/darren/airsonos\r\n    npm ERR! Darwin 15.2.0\r\n    npm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"-g\"\r\n    npm ERR! node v5.4.0\r\n    npm ERR! npm  v3.5.3\r\n    npm ERR! file sh\r\n    npm ERR! code ELIFECYCLE\r\n    npm ERR! errno ENOENT\r\n    npm ERR! syscall spawn\r\n    npm ERR! airsonos@0.2.5 prepublish: `babel ./lib/ -d ./bin/`\r\n    npm ERR! spawn ENOENT\r\n    npm ERR! \r\n    npm ERR! Failed at the airsonos@0.2.5 prepublish script 'babel ./lib/ -d ./bin/'.\r\n    npm ERR! Make sure you have the latest version of node.js and npm installed.\r\n    npm ERR! If you do, this is most likely a problem with the airsonos package,\r\n    npm ERR! not with npm itself.\r\n    npm ERR! Tell the author that this fails on your system:\r\n    npm ERR!     babel ./lib/ -d ./bin/\r\n    npm ERR! You can get information on how to open an issue for this project with:\r\n    npm ERR!     npm bugs airsonos\r\n    npm ERR! Or if that isn't available, you can get their info via:\r\n    npm ERR!     npm owner ls airsonos\r\n    npm ERR! There is likely additional logging output above.\r\n    \r\n    npm ERR! Please include the following file with any support request:\r\n    npm ERR!     /Users/darren/airsonos/npm-debug.log\r\n\r\nSo here is my npm-debug.log:\r\n\r\n    0 info it worked if it ends with ok\r\n    1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install', '-g' ]\r\n    2 info using npm@3.5.3\r\n    3 info using node@v5.4.0\r\n    4 silly loadCurrentTree Starting\r\n    5 silly install loadCurrentTree\r\n    6 silly install readGlobalPackageData\r\n    7 silly fetchPackageMetaData .\r\n    8 silly fetchDirectoryPackageData .\r\n    9 silly install normalizeTree\r\n    10 silly loadCurrentTree Finishing\r\n    11 silly loadIdealTree Starting\r\n    12 silly install loadIdealTree\r\n    13 silly cloneCurrentTree Starting\r\n    14 silly install cloneCurrentTreeToIdealTree\r\n    15 silly cloneCurrentTree Finishing\r\n    16 silly loadShrinkwrap Starting\r\n    17 silly install loadShrinkwrap\r\n    18 silly loadShrinkwrap Finishing\r\n    19 silly loadAllDepsIntoIdealTree Starting\r\n    20 silly install loadAllDepsIntoIdealTree\r\n    21 silly resolveWithNewModule airsonos@0.2.5 checking installable status\r\n    22 silly cache add args [ '.', null ]\r\n    23 verbose cache add spec .\r\n    24 silly cache add parsed spec Result {\r\n    24 silly cache add   raw: '.',\r\n    24 silly cache add   scope: null,\r\n    24 silly cache add   name: null,\r\n    24 silly cache add   rawSpec: '.',\r\n    24 silly cache add   spec: '/Users/darren/airsonos',\r\n    24 silly cache add   type: 'directory' }\r\n    25 verbose addLocalDirectory /Users/darren/.npm/airsonos/0.2.5/package.tgz not in flight; packing\r\n    26 info lifecycle airsonos@0.2.5~prepublish: airsonos@0.2.5\r\n    27 verbose lifecycle airsonos@0.2.5~prepublish: unsafe-perm in lifecycle true\r\n    28 verbose lifecycle airsonos@0.2.5~prepublish: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/darren/airsonos/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin\r\n    29 verbose lifecycle airsonos@0.2.5~prepublish: CWD: /Users/darren/airsonos\r\n    30 silly lifecycle airsonos@0.2.5~prepublish: Args: [ '-c', 'babel ./lib/ -d ./bin/' ]\r\n    31 info lifecycle airsonos@0.2.5~prepublish: Failed to exec prepublish script\r\n    32 error addLocal Could not install /Users/darren/airsonos\r\n    33 silly rollbackFailedOptional Starting\r\n    34 silly rollbackFailedOptional Finishing\r\n    35 silly runTopLevelLifecycles Starting\r\n    36 silly runTopLevelLifecycles Finishing\r\n    37 silly install printInstalled\r\n    38 verbose stack Error: airsonos@0.2.5 prepublish: `babel ./lib/ -d ./bin/`\r\n    38 verbose stack spawn ENOENT\r\n    38 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:17:16)\r\n    38 verbose stack     at emitTwo (events.js:87:13)\r\n    38 verbose stack     at ChildProcess.emit (events.js:172:7)\r\n    38 verbose stack     at maybeClose (internal/child_process.js:821:16)\r\n    38 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)\r\n    39 verbose pkgid airsonos@0.2.5\r\n    40 verbose cwd /Users/darren/airsonos\r\n    41 error Darwin 15.2.0\r\n    42 error argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"-g\"\r\n    43 error node v5.4.0\r\n    44 error npm  v3.5.3\r\n    45 error file sh\r\n    46 error code ELIFECYCLE\r\n    47 error errno ENOENT\r\n    48 error syscall spawn\r\n    49 error airsonos@0.2.5 prepublish: `babel ./lib/ -d ./bin/`\r\n    49 error spawn ENOENT\r\n    50 error Failed at the airsonos@0.2.5 prepublish script 'babel ./lib/ -d ./bin/'.\r\n    50 error Make sure you have the latest version of node.js and npm installed.\r\n    50 error If you do, this is most likely a problem with the airsonos package,\r\n    50 error not with npm itself.\r\n    50 error Tell the author that this fails on your system:\r\n    50 error     babel ./lib/ -d ./bin/\r\n    50 error You can get information on how to open an issue for this project with:\r\n    50 error     npm bugs airsonos\r\n    50 error Or if that isn't available, you can get their info via:\r\n    50 error     npm owner ls airsonos\r\n    50 error There is likely additional logging output above.\r\n    51 verbose exit [ 1, true ]\r\n\r\nPlease let me know if there's any further info that would help in troubleshooting!"},"comment":{"url":"https://api.github.com/repos/stephen/airsonos/issues/comments/170397625","html_url":"https://github.com/stephen/airsonos/issues/264#issuecomment-170397625","issue_url":"https://api.github.com/repos/stephen/airsonos/issues/264","id":170397625,"user":{"login":"ruyt","id":16599200,"avatar_url":"https://avatars.githubusercontent.com/u/16599200?v=3","gravatar_id":"","url":"https://api.github.com/users/ruyt","html_url":"https://github.com/ruyt","followers_url":"https://api.github.com/users/ruyt/followers","following_url":"https://api.github.com/users/ruyt/following{/other_user}","gists_url":"https://api.github.com/users/ruyt/gists{/gist_id}","starred_url":"https://api.github.com/users/ruyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruyt/subscriptions","organizations_url":"https://api.github.com/users/ruyt/orgs","repos_url":"https://api.github.com/users/ruyt/repos","events_url":"https://api.github.com/users/ruyt/events{/privacy}","received_events_url":"https://api.github.com/users/ruyt/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T21:54:07Z","updated_at":"2016-01-10T21:54:07Z","body":"i think you have to add \"sudo\" in front of npm (sudo npm....). if you do so you install the software with administrator rights."}}