Sep 19, 2016 - You can install Node.js packages not only from the npm registry but also from git. Npm install https://github.com//repository. **************************************************************** * USERS AFFECTED: All users of the IBM SDK for Node.js - * * z/OS, V6.0 * **************************************************************** * PROBLEM DESCRIPTION: Unhandled Rejection Error on 'npm * * install' from a git repo on z/OS * **************************************************************** * RECOMMENDATION: Apply provided service * **************************************************************** 'npm install' from a git repository fails with an Unhandled Rejection Error on execution of a git checkout command. Npm spawns a child process to run Git and all communication between the parent and child are done via sockets. Git is an ASCII application and produces ASCII output; UNIX System Services (USS) does not support auto-conversion for content passed through sockets. This APAR adds support in the Node runtime to convert the content appropriately to enable npm to install a package from a git repository. The following is an example stack trace of the error: Unhandled rejection Error: Command failed: git checkout at ChildProcess.exithandler (child_process.js:198:12) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at maybeClose (internal/child_process.js:902:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) Problem conclusion •. Npm install git+ssh://[email protected]:isaacs/sax-js.git npm ERR! Failed git clone ssh://[email protected]:isaacs/sax-js.git npm ERR! Error: git 'clone' 'ssh://[email protected]:isaacs/sax-js.git' '/var/folders/8A/8AsLZQW-F1GsmLrEXQx0YE+++TM/-Tmp-/npm-0040065-0.102744' failed with 128 npm ERR! At ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20) npm ERR! At ChildProcess.emit (events.js:67:17) npm ERR! At ChildProcess.onexit (child_process.js:192:12) npm ERR! Report this entire log at: npm ERR! Xforce keygen autocad 2016 download. Or email it to: npm ERR! System Darwin 10.8.0 npm ERR! Command 'node' '/usr/local/bin/npm' 'install' 'git+ssh://[email protected]:isaacs/sax-js.git' npm ERR! Cwd /private/tmp npm ERR! Node -v v0.4.12 npm ERR! Npm -v 1.0.30. The problem lies within the: but not in the protocol, but in the protocol AND the path which is the way to express the url of private github repos: taken from section clone: 'For public repos you own or are a collaborator on, and all private repos, you must use a private ssh url like:user/repo.git. You can find each of the URLs available to you in the header of the repo page:' with npm 1.0.30 just the 'public' git url do work: npm install git://github.com/isaacs/sax-js.git [email protected]./node_modules/sax the private or read/write url does not work npm install git+ssh://[email protected]:isaacs/sax-js.git npm ERR! Failed git clone ssh://[email protected]:isaacs/sax-js.git npm ERR! Error: `git 'clone' 'ssh://[email protected]:isaacs/sax-js.git' $ npm install git://[email protected]:isaacs/sax-js.git npm ERR! Failed git clone git://[email protected]:isaacs/sax-js.git npm ERR! Error: `git 'clone' 'git://[email protected]:isaacs/sax-js.git' $ npm install:isaacs/sax-js.git npm ERR! Error: Not found: git@'github.com:isaacs/sax-js.git' npm ERR! Valid install targets: npm ERR! ['stable','latest','0.1.0','0.1.1','0.1.2','0.1.3'] but npm 1.0.27 does the right thing: $ npm install git+ssh://[email protected]:isaacs/sax-js.git [email protected]./node_modules/sax and it does work with the public url: $ npm install git://github.com/isaacs/sax-js.git [email protected]./node_modules/sax the other variants fail here too: $ npm install git://[email protected]:isaacs/sax-js.git npm ERR! Failed git clone git://[email protected]:isaacs/sax-js.git npm ERR! Error: `git 'clone' 'git://[email protected]:isaacs/sax-js.git' $ npm install:isaacs/sax-js.git npm ERR! Error: Not found: git@'github.com:isaacs/sax-js.git' npm ERR! Valid install targets: npm ERR!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |