reasonml-old / rebel

122 stars 16 forks source link

Failing `npm install` on Windows 10 #43

Open OvermindDL1 opened 8 years ago

OvermindDL1 commented 8 years ago

Currently the build on a Windows build server is failing with:

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "reasonml/rebel"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE

npm ERR! ocaml@4.2.3 postinstall: `echo $(pwd) && ls && echo $PATH && ./configure -no-cfi -prefix $(pwd) && make -j world.opt && make install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ocaml@4.2.3 postinstall script 'echo $(pwd) && ls && echo $PATH && ./configure -no-cfi -prefix $(pwd) && make -j world.opt && make install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ocaml package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     echo $(pwd) && ls && echo $PATH && ./configure -no-cfi -prefix $(pwd) && make -j world.opt && make install

It looks like an npm ocaml package does not support Windows and an alternative needs to be supplied.

jordwalke commented 8 years ago

Thank you for testing. We need someone to own the windows integration.

OvermindDL1 commented 8 years ago

I'm not super knowledgeable in npm but if there is anything you need me to test or so, just say. :-)

OvermindDL1 commented 8 years ago

I've managed to get further:

$ npm install --save-dev reasonml/rebel
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-17052-19529301\git-cache-613f58b5\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: Cloning into 'C:\OCaml64\tmp\npm-17052-19529301\git-cache-613f58b5\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a'...
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-17052-19529301\git-cache-613f58b5\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: fatal: '/cygdrive/c/Users/<user>/AppData/Roaming/npm-cache/_git-remotes/git-github-com-reasonml-rebel-git-bf9d10e1/C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1' does not appear to be a git repository
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-17052-19529301\git-cache-613f58b5\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: fatal: Could not read from remote repository.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-17052-19529301\git-cache-613f58b5\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a:
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-17052-19529301\git-cache-613f58b5\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: Please make sure you have the correct access rights
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-17052-19529301\git-cache-613f58b5\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: and the repository exists.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-17052-19529301\git-cache-613f58b5\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a:
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-17052-19529301\git-cache-dd412b23\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: Cloning into 'C:\OCaml64\tmp\npm-17052-19529301\git-cache-dd412b23\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a'...
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-17052-19529301\git-cache-dd412b23\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: fatal: '/cygdrive/c/Users/<user>/AppData/Roaming/npm-cache/_git-remotes/git-https-github-com-reasonml-rebel-git-a4cba107/C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107' does not appear to be a git repository
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-17052-19529301\git-cache-dd412b23\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: fatal: Could not read from remote repository.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-17052-19529301\git-cache-dd412b23\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a:
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-17052-19529301\git-cache-dd412b23\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: Please make sure you have the correct access rights
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-17052-19529301\git-cache-dd412b23\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: and the repository exists.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-17052-19529301\git-cache-dd412b23\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a:
npm ERR! git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: Cloning into bare repository 'C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf'...
npm ERR! git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: Permission denied (publickey).
npm ERR! git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: fatal: Could not read from remote repository.
npm ERR! git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf:
npm ERR! git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: Please make sure you have the correct access rights
npm ERR! git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: and the repository exists.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "reasonml/rebel"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! code 128

It's acting like it is trying to clone via a git url instead of an https url, which would be wrong if so. :-)

jordwalke commented 8 years ago

Npm supports git URLs though which is what reasonml/rebel represents.

There's an NPM log file that it spits out with more details in your directory.

OvermindDL1 commented 8 years ago

Full log follows:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   '--save-dev',
1 verbose cli   'reasonml/rebel' ]
2 info using npm@3.8.9
3 info using node@v6.2.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData reasonml/rebel
8 silly fetchOtherPackageData reasonml/rebel
9 silly cache add args [ 'reasonml/rebel', null ]
10 verbose cache add spec reasonml/rebel
11 silly cache add parsed spec Result {
11 silly cache add   raw: 'reasonml/rebel',
11 silly cache add   scope: null,
11 silly cache add   name: null,
11 silly cache add   rawSpec: 'reasonml/rebel',
11 silly cache add   spec: 'github:reasonml/rebel',
11 silly cache add   type: 'hosted',
11 silly cache add   hosted:
11 silly cache add    { type: 'github',
11 silly cache add      ssh: 'git@github.com:reasonml/rebel.git',
11 silly cache add      sshUrl: 'git+ssh://git@github.com/reasonml/rebel.git',
11 silly cache add      httpsUrl: 'git+https://github.com/reasonml/rebel.git',
11 silly cache add      gitUrl: 'git://github.com/reasonml/rebel.git',
11 silly cache add      shortcut: 'github:reasonml/rebel',
11 silly cache add      directUrl: 'https://raw.githubusercontent.com/reasonml/rebel/master/package.json' } }
12 verbose addRemoteGit caching reasonml/rebel
13 verbose addRemoteGit reasonml/rebel is a repository hosted by github
14 silly tryGitProto attempting to clone git://github.com/reasonml/rebel.git
15 silly tryClone cloning reasonml/rebel via git://github.com/reasonml/rebel.git
16 verbose tryClone git-github-com-reasonml-rebel-git-bf9d10e1 not in flight; caching
17 verbose correctMkdir C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes correctMkdir not in flight; initializing
18 info git [ 'config', '--get', 'remote.origin.url' ]
19 silly validateExistingRemote reasonml/rebel remote.origin.url: git://github.com/reasonml/rebel.git
20 verbose validateExistingRemote reasonml/rebel is updating existing cached remote C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1
21 info git [ 'fetch', '-a', 'origin' ]
22 verbose updateRemote git fetch -a origin (git://github.com/reasonml/rebel.git)
23 verbose setPermissions reasonml/rebel skipping chownr on Windows
24 verbose resolveHead reasonml/rebel original treeish: master
25 info git [ 'rev-list', '-n1', 'master' ]
26 silly resolveHead reasonml/rebel resolved treeish: 65dfda952eaa2b2c32b5f7252c75d5d0e11c170a
27 verbose resolveHead reasonml/rebel resolved Git URL: git://github.com/reasonml/rebel.git#65dfda952eaa2b2c32b5f7252c75d5d0e11c170a
28 silly resolveHead Git working directory: C:\OCaml64\tmp\npm-11924-098171fa\git-cache-b976f519\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a
29 info git [ 'clone',
29 info git   'C:\\Users\\<user>\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-reasonml-rebel-git-bf9d10e1',
29 info git   'C:\\OCaml64\\tmp\\npm-11924-098171fa\\git-cache-b976f519\\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a' ]
30 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-b976f519\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: Cloning into 'C:\OCaml64\tmp\npm-11924-098171fa\git-cache-b976f519\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a'...
30 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-b976f519\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: fatal: '/cygdrive/c/Users/<user>/AppData/Roaming/npm-cache/_git-remotes/git-github-com-reasonml-rebel-git-bf9d10e1/C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1' does not appear to be a git repository
30 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-b976f519\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: fatal: Could not read from remote repository.
30 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-b976f519\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a:
30 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-b976f519\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: Please make sure you have the correct access rights
30 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-bf9d10e1 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-b976f519\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: and the repository exists.
31 silly tryHTTPS attempting to clone git+https://github.com/reasonml/rebel.git
32 silly tryClone cloning reasonml/rebel via git+https://github.com/reasonml/rebel.git
33 verbose tryClone git-https-github-com-reasonml-rebel-git-a4cba107 not in flight; caching
34 verbose correctMkdir C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes correctMkdir not in flight; initializing
35 info git [ 'config', '--get', 'remote.origin.url' ]
36 silly validateExistingRemote reasonml/rebel remote.origin.url: https://github.com/reasonml/rebel.git
37 verbose validateExistingRemote reasonml/rebel is updating existing cached remote C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107
38 info git [ 'fetch', '-a', 'origin' ]
39 verbose updateRemote git fetch -a origin (https://github.com/reasonml/rebel.git)
40 verbose setPermissions reasonml/rebel skipping chownr on Windows
41 verbose resolveHead reasonml/rebel original treeish: master
42 info git [ 'rev-list', '-n1', 'master' ]
43 silly resolveHead reasonml/rebel resolved treeish: 65dfda952eaa2b2c32b5f7252c75d5d0e11c170a
44 verbose resolveHead reasonml/rebel resolved Git URL: git+https://github.com/reasonml/rebel.git#65dfda952eaa2b2c32b5f7252c75d5d0e11c170a
45 silly resolveHead Git working directory: C:\OCaml64\tmp\npm-11924-098171fa\git-cache-297753ad\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a
46 info git [ 'clone',
46 info git   'C:\\Users\\<user>\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-https-github-com-reasonml-rebel-git-a4cba107',
46 info git   'C:\\OCaml64\\tmp\\npm-11924-098171fa\\git-cache-297753ad\\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a' ]
47 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-297753ad\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: Cloning into 'C:\OCaml64\tmp\npm-11924-098171fa\git-cache-297753ad\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a'...
47 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-297753ad\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: fatal: '/cygdrive/c/Users/<user>/AppData/Roaming/npm-cache/_git-remotes/git-https-github-com-reasonml-rebel-git-a4cba107/C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107' does not appear to be a git repository
47 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-297753ad\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: fatal: Could not read from remote repository.
47 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-297753ad\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a:
47 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-297753ad\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: Please make sure you have the correct access rights
47 error git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-reasonml-rebel-git-a4cba107 C:\OCaml64\tmp\npm-11924-098171fa\git-cache-297753ad\65dfda952eaa2b2c32b5f7252c75d5d0e11c170a: and the repository exists.
48 silly trySSH attempting to clone git@github.com:reasonml/rebel.git
49 silly tryClone cloning reasonml/rebel via git@github.com:reasonml/rebel.git
50 verbose tryClone git-github-com-reasonml-rebel-git-f009c2bf not in flight; caching
51 verbose correctMkdir C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes correctMkdir not in flight; initializing
52 info git [ 'clone',
52 info git   '--template=C:\\Users\\<user>\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates',
52 info git   '--mirror',
52 info git   'git@github.com:reasonml/rebel.git',
52 info git   'C:\\Users\\<user>\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-reasonml-rebel-git-f009c2bf' ]
53 error git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: Cloning into bare repository 'C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf'...
53 error git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: Permission denied (publickey).
53 error git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: fatal: Could not read from remote repository.
53 error git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf:
53 error git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: Please make sure you have the correct access rights
53 error git clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf: and the repository exists.
54 silly fetchPackageMetaData Error: Command failed: git -c core.longpaths=true clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf
54 silly fetchPackageMetaData Cloning into bare repository 'C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf'...
54 silly fetchPackageMetaData Permission denied (publickey).
54 silly fetchPackageMetaData fatal: Could not read from remote repository.
54 silly fetchPackageMetaData
54 silly fetchPackageMetaData Please make sure you have the correct access rights
54 silly fetchPackageMetaData and the repository exists.
54 silly fetchPackageMetaData
54 silly fetchPackageMetaData     at ChildProcess.exithandler (child_process.js:202:12)
54 silly fetchPackageMetaData     at emitTwo (events.js:106:13)
54 silly fetchPackageMetaData     at ChildProcess.emit (events.js:191:7)
54 silly fetchPackageMetaData     at maybeClose (internal/child_process.js:850:16)
54 silly fetchPackageMetaData     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
54 silly fetchPackageMetaData  error for reasonml/rebel { Error: Command failed: git -c core.longpaths=true clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf
54 silly fetchPackageMetaData Cloning into bare repository 'C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf'...
54 silly fetchPackageMetaData Permission denied (publickey).
54 silly fetchPackageMetaData fatal: Could not read from remote repository.
54 silly fetchPackageMetaData
54 silly fetchPackageMetaData Please make sure you have the correct access rights
54 silly fetchPackageMetaData and the repository exists.
54 silly fetchPackageMetaData
54 silly fetchPackageMetaData     at ChildProcess.exithandler (child_process.js:202:12)
54 silly fetchPackageMetaData     at emitTwo (events.js:106:13)
54 silly fetchPackageMetaData     at ChildProcess.emit (events.js:191:7)
54 silly fetchPackageMetaData     at maybeClose (internal/child_process.js:850:16)
54 silly fetchPackageMetaData     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
54 silly fetchPackageMetaData   killed: false,
54 silly fetchPackageMetaData   code: 128,
54 silly fetchPackageMetaData   signal: null,
54 silly fetchPackageMetaData   cmd: 'git -c core.longpaths=true clone --template=C:\\Users\\<user>\\AppData\\Roaming\\npm-cache\\_git-remotes\\_templates --mirror git@github.com:reasonml/rebel.git C:\\Users\\<user>\\AppData\\Roaming\\npm-cache\\_git-remotes\\git-github-com-reasonml-rebel-git-f009c2bf' }
55 silly rollbackFailedOptional Starting
56 silly rollbackFailedOptional Finishing
57 silly runTopLevelLifecycles Starting
58 silly runTopLevelLifecycles Finishing
59 silly install printInstalled
60 verbose stack Error: Command failed: git -c core.longpaths=true clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf
60 verbose stack Cloning into bare repository 'C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf'...
60 verbose stack Permission denied (publickey).
60 verbose stack fatal: Could not read from remote repository.
60 verbose stack
60 verbose stack Please make sure you have the correct access rights
60 verbose stack and the repository exists.
60 verbose stack
60 verbose stack     at ChildProcess.exithandler (child_process.js:202:12)
60 verbose stack     at emitTwo (events.js:106:13)
60 verbose stack     at ChildProcess.emit (events.js:191:7)
60 verbose stack     at maybeClose (internal/child_process.js:850:16)
60 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
61 verbose cwd C:\Users\<user>\Projects\upstream\bstesting
62 error Windows_NT 10.0.14393
63 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "reasonml/rebel"
64 error node v6.2.0
65 error npm  v3.8.9
66 error code 128
67 error Command failed: git -c core.longpaths=true clone --template=C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:reasonml/rebel.git C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf
67 error Cloning into bare repository 'C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-github-com-reasonml-rebel-git-f009c2bf'...
67 error Permission denied (publickey).
67 error fatal: Could not read from remote repository.
67 error
67 error Please make sure you have the correct access rights
67 error and the repository exists.
68 error If you need help, you may report this error at:
68 error     <https://github.com/npm/npm/issues>
69 verbose exit [ 1, true ]

I've been looking at it more for a while here and as far as I can tell it is an npm bug (blegh) because it is not sanitizing the git paths properly (not rebel's fault, this is within npm's own code, and still bugged on their github too). I managed to work around it by altering their lib/utils/git.js file (every time I deal with npm it always has some issue, I really do not like how popular it is...). And now I have a new error, and this one looks to be within something rebel does (specifically it is compiling ocaml without trying to setup the environment first and giving a wrong command for windows), thus new log (this one is significant in size compared to the above, hence a link): https://gist.github.com/OvermindDL1/81098df4664ea6c38af46f4227093435

The gist of the above gist though is:

4385 error Windows_NT 10.0.14393
4386 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\<user>\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "reasonml/rebel"
4387 error node v6.2.0
4388 error npm  v3.10.8
4389 error code ELIFECYCLE
4390 error ocaml@4.2.3 postinstall: `echo $(pwd) && ls && echo $PATH && ./configure -no-cfi -prefix $(pwd) && make -j world.opt && make install`
4390 error Exit status 1
4391 error Failed at the ocaml@4.2.3 postinstall script 'echo $(pwd) && ls && echo $PATH && ./configure -no-cfi -prefix $(pwd) && make -j world.opt && make install'.

Which is of course the original issue.

Maybe not build ocaml internally and use the system installed one instead if it exists? :-)

ghost commented 7 years ago

I just tried installing the RebelExampleProject and get the following error:

npm install

> ocaml@4.2.3 postinstall C:\Users\Manuel\Dropbox\Dev\editor-reason\node_modules\ocaml
> ./yarn-install-project.sh

Der Befehl "." ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
RebelExampleProject@0.0.1 C:\Users\Manuel\Dropbox\Dev\editor-reason
`-- (empty)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.2.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! ocaml@4.2.3 postinstall: `./yarn-install-project.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ocaml@4.2.3 postinstall script './yarn-install-project.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ocaml package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./yarn-install-project.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ocaml
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ocaml
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Manuel\Dropbox\Dev\editor-reason\npm-debug.log
npm ERR! code 1

I have msys2 installed, maybe I get further because of it, but the shell script ./yarn-install-project.sh cannot be executed.

Using the linux subystem for windows I get the following error:

npm install
npm http GET https://registry.npmjs.org/ocamlBetterErrors/0.0.10
npm http GET https://registry.npmjs.org/realpath
npm http GET https://registry.npmjs.org/opam-alpha/merlin
npm http GET https://registry.npmjs.org/opam-alpha/ocaml/4.2.3
npm http GET https://github.com/facebook/reason.git
npm http GET https://github.com/reasonml/dependency-env.git
npm http GET https://github.com/reasonml/nopam.git
npm http GET https://github.com/reasonml/rebel.git
npm http 200 https://registry.npmjs.org/ocamlBetterErrors/0.0.10
npm http 200 https://registry.npmjs.org/realpath
npm http GET https://registry.npmjs.org/ocamlBetterErrors/-/ocamlBetterErrors-0.0.10.tgz
npm http GET https://registry.npmjs.org/realpath/-/realpath-1.1.0.tgz
npm http 200 https://registry.npmjs.org/ocamlBetterErrors/-/ocamlBetterErrors-0.0.10.tgz
npm http 200 https://registry.npmjs.org/realpath/-/realpath-1.1.0.tgz
npm http 404 https://registry.npmjs.org/opam-alpha/ocaml/4.2.3
npm http 404 https://registry.npmjs.org/opam-alpha/merlin
npm ERR! 404 'opam-alpha' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 3.4.0+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /mnt/c/Users/Manuel/Dropbox/Dev/editor-reason
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! code E404
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR!     at /usr/share/npm/lib/cache.js:675:5
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR!     at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.4.0+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /mnt/c/Users/Manuel/Dropbox/Dev/editor-reason
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm http 200 https://github.com/facebook/reason.git
npm http 200 https://github.com/reasonml/nopam.git
npm http 200 https://github.com/reasonml/dependency-env.git
npm http 200 https://github.com/reasonml/rebel.git
npm ERR! not a package /home/manuel/tmp/npm-7554-0jF3t1ts/1481381291255-0.4002876435406506/tmp.tgz
npm ERR! not a package /home/manuel/tmp/npm-7554-0jF3t1ts/1481381291250-0.7643000483512878/tmp.tgz
npm ERR! not a package /home/manuel/tmp/npm-7554-0jF3t1ts/1481381291255-0.686094758566469/tmp.tgz
npm ERR! not a package /home/manuel/tmp/npm-7554-0jF3t1ts/1481381291256-0.9092401096131653/tmp.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /mnt/c/Users/Manuel/Dropbox/Dev/editor-reason/npm-debug.log
npm ERR! not ok code 0
vramana commented 7 years ago

@maun Hey, looks like you are using an very outdated version of npm. Can you update to npm@3 and try again?

ghost commented 7 years ago

@vramana On windows I have the following version:

npm --version
3.10.10

node --version
v7.2.1

and in the linux subsystem only this old version was included, after installing a recent one and the m4 package npm install fails with

...
npm verb pkgid ppx_driver-actual@113.33.3
npm verb cwd /mnt/c/Users/Manuel/Dropbox/Dev/editor-reason
npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "--loglevel" "verbose" "install"
npm ERR! node v7.2.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! ppx_driver-actual@113.33.3 postinstall: `eval $(dependencyEnv) && nopam && ./configure --prefix $opam_prefix && make && (opam-installer --prefix=$opam_prefix || true)`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the ppx_driver-actual@113.33.3 postinstall script 'eval $(dependencyEnv) && nopam && ./configure --prefix $opam_prefix && make && (opam-installer --prefix=$opam_prefix || true)'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ppx_driver-actual package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eval $(dependencyEnv) && nopam && ./configure --prefix $opam_prefix && make && (opam-installer --prefix=$opam_prefix || true)
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ppx_driver-actual
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ppx_driver-actual
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]
janicduplessis commented 7 years ago

Also tried running in on windows linux subsystem and get this error when building fastrealpath:

> fastrealpath@0.1.0 postinstall /mnt/c/Users/janic/Developer/ReasonProject/node_modules/fastrealpath
> gcc -o ./.bin/realpath -x c - <<< $'#include<stdlib.h>
main(int cc, char**vargs){
  puts(realpath(vargs[1], 0));
}'

sh: 1: Syntax error: redirection unexpected

[...]

npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i"
npm ERR! node v7.2.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! fastrealpath@0.1.0 postinstall: `gcc -o ./.bin/realpath -x c - <<< $'#include<stdlib.h>
npm ERR! main(int cc, char**vargs){
npm ERR!   puts(realpath(vargs[1], 0));
npm ERR! }'`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the fastrealpath@0.1.0 postinstall script 'gcc -o ./.bin/realpath -x c - <<< $'#include<stdlib.h>
npm ERR! main(int cc, char**vargs){
npm ERR!   puts(realpath(vargs[1], 0));
npm ERR! }''.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fastrealpath package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gcc -o ./.bin/realpath -x c - <<< $'#include<stdlib.h>
npm ERR! main(int cc, char**vargs){
npm ERR!   puts(realpath(vargs[1], 0));
npm ERR! }'
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fastrealpath
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fastrealpath
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /mnt/c/Users/janic/Developer/ReasonProject/npm-debug.log

Note: to get to this point I had to install build-essential and m4.

Edit: Oups, posted this on the wrong issue, not really related to rebel

jordwalke commented 7 years ago

I think this may be fixed now that we have fixed FastRealPath on linux.