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

Check node version on preinstall (also, support other node versions) #3

Open
thebird opened this issue May 6, 2013 · 5 comments
Open
Assignees

Comments

@thebird
Copy link

thebird commented May 6, 2013

screen shot 2013-05-06 at 9 07 10 am

@thebird
Copy link
Author

thebird commented May 6, 2013

0 info it worked if it ends with ok
1 verbose cli [ '/opt/boxen/nvm/v0.10.5/bin/node',
1 verbose cli '/opt/boxen/nvm/v0.10.5/bin/npm',
1 verbose cli 'install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose read json /Users/brad/.impromptu/package.json
5 verbose readDependencies using package.json deps
6 verbose install where, deps [ '/Users/brad/.impromptu',
6 verbose install [ 'impromptu',
6 verbose install 'impromptu-git',
6 verbose install 'impromptu-system',
6 verbose install 'mocha',
6 verbose install 'should' ] ]
7 verbose from cache /Users/brad/.impromptu/package.json
8 info preinstall [email protected]
9 verbose read json /Users/brad/.impromptu/node_modules/async/package.json
10 verbose read json /Users/brad/.impromptu/node_modules/impromptu/package.json
11 verbose read json /Users/brad/.impromptu/node_modules/impromptu-system/package.json
12 verbose read json /Users/brad/.impromptu/node_modules/mocha/package.json
13 verbose read json /Users/brad/.impromptu/node_modules/should/package.json
14 verbose from cache /Users/brad/.impromptu/package.json
15 verbose readDependencies using package.json deps
16 verbose from cache /Users/brad/.impromptu/node_modules/async/package.json
17 verbose from cache /Users/brad/.impromptu/node_modules/impromptu/package.json
18 verbose from cache /Users/brad/.impromptu/node_modules/impromptu-system/package.json
19 verbose from cache /Users/brad/.impromptu/node_modules/mocha/package.json
20 verbose from cache /Users/brad/.impromptu/node_modules/should/package.json
21 verbose already installed skipping impromptu@~0.2.0-beta.2 /Users/brad/.impromptu
22 verbose cache add [ 'impromptu-git@~0.1.4', null ]
23 verbose cache add name=undefined spec="impromptu-git@~0.1.4" args=["impromptu-git@~0.1.4",null]
24 verbose parsed url { protocol: null,
24 verbose parsed url slashes: null,
24 verbose parsed url auth: null,
24 verbose parsed url host: null,
24 verbose parsed url port: null,
24 verbose parsed url hostname: null,
24 verbose parsed url hash: null,
24 verbose parsed url search: null,
24 verbose parsed url query: null,
24 verbose parsed url pathname: 'impromptu-git@~0.1.4',
24 verbose parsed url path: 'impromptu-git@~0.1.4',
24 verbose parsed url href: 'impromptu-git@~0.1.4' }
25 verbose cache add name="impromptu-git" spec="~0.1.4" args=["impromptu-git","~0.1.4"]
26 verbose parsed url { protocol: null,
26 verbose parsed url slashes: null,
26 verbose parsed url auth: null,
26 verbose parsed url host: null,
26 verbose parsed url port: null,
26 verbose parsed url hostname: null,
26 verbose parsed url hash: null,
26 verbose parsed url search: null,
26 verbose parsed url query: null,
26 verbose parsed url pathname: '~0.1.4',
26 verbose parsed url path: '~0.1.4',
26 verbose parsed url href: '~0.1.4' }
27 verbose addNamed [ 'impromptu-git', '~0.1.4' ]
28 verbose addNamed [ null, '>=0.1.4- <0.2.0-' ]
29 verbose already installed skipping impromptu-system@~0.1.2 /Users/brad/.impromptu
30 silly lockFile 1be93d47-impromptu-git-0-1-4 impromptu-git@~0.1.4
31 verbose lock impromptu-git@~0.1.4 /Users/brad/.npm/1be93d47-impromptu-git-0-1-4.lock
32 silly addNameRange { name: 'impromptu-git',
32 silly addNameRange range: '>=0.1.4- <0.2.0-',
32 silly addNameRange hasData: false }
33 verbose already installed skipping should@~1.2.2 /Users/brad/.impromptu
34 verbose already installed skipping mocha@~1.8.2 /Users/brad/.impromptu
35 verbose url raw impromptu-git
36 verbose url resolving [ 'https://registry.npmjs.org/', './impromptu-git' ]
37 verbose url resolved https://registry.npmjs.org/impromptu-git
38 info trying registry request attempt 1 at 09:12:09
39 verbose etag "7U42Y3F6XCS7H42DS3S2LPUAQ"
40 http GET https://registry.npmjs.org/impromptu-git
41 http 304 https://registry.npmjs.org/impromptu-git
42 silly registry.get cb [ 304,
42 silly registry.get { server: 'CouchDB/1.3.0 (Erlang OTP/R15B03)',
42 silly registry.get etag: '"7U42Y3F6XCS7H42DS3S2LPUAQ"',
42 silly registry.get date: 'Mon, 06 May 2013 16:12:06 GMT',
42 silly registry.get 'content-length': '0' } ]
43 verbose etag impromptu-git from cache
44 silly addNameRange number 2 { name: 'impromptu-git',
44 silly addNameRange range: '>=0.1.4- <0.2.0-',
44 silly addNameRange hasData: true }
45 silly addNameRange versions [ 'impromptu-git', [ '0.1.0', '0.1.1', '0.1.2', '0.1.4' ] ]
46 verbose addNamed [ 'impromptu-git', '0.1.4' ]
47 verbose addNamed [ '0.1.4', '0.1.4' ]
48 silly lockFile 9cc32acd-impromptu-git-0-1-4 [email protected]
49 verbose lock [email protected] /Users/brad/.npm/9cc32acd-impromptu-git-0-1-4.lock
50 verbose read json /Users/brad/.npm/impromptu-git/0.1.4/package/package.json
51 silly lockFile 9cc32acd-impromptu-git-0-1-4 [email protected]
52 silly lockFile 9cc32acd-impromptu-git-0-1-4 [email protected]
53 silly lockFile 1be93d47-impromptu-git-0-1-4 impromptu-git@~0.1.4
54 silly lockFile 1be93d47-impromptu-git-0-1-4 impromptu-git@~0.1.4
55 silly resolved [ { name: 'impromptu-git',
55 silly resolved description: 'A git module for Impromptu.',
55 silly resolved version: '0.1.4',
55 silly resolved homepage: 'http://impromptu.sh/',
55 silly resolved author: { name: 'Impromptu Team', url: 'http://impromptu.sh/' },
55 silly resolved contributors: [ [Object], [Object] ],
55 silly resolved repository:
55 silly resolved { type: 'git',
55 silly resolved url: 'git://github.com/Impromptu/impromptu-git.git' },
55 silly resolved bugs: { url: 'https://github.com/impromptu/impromptu-git/issues' },
55 silly resolved licenses: [ [Object] ],
55 silly resolved main: 'index.js',
55 silly resolved scripts:
55 silly resolved { test: 'mocha test/*.coffee --compilers coffee:coffee-script',
55 silly resolved preinstall: './scripts/summon/summon cmake',
55 silly resolved prepublish: 'cake build' },
55 silly resolved dependencies: { 'git-utils': '~0.15.0' },
55 silly resolved devDependencies: { 'coffee-script': '~1.6.2', mocha: '~1.8.2', should: '~1.2.2' },
55 silly resolved peerDependencies: { impromptu: '~0.2.0-beta.2' },
55 silly resolved keywords: [],
55 silly resolved readme: 'impromptu-git\n=============\n\nA git module for Impromptu.\n\n\n## Dependencies\n\nThe git-utils library requires CMake. You can install it with Homebrew brew install cmake and probably some other package managers. If you have Homebrew installed, the NPM install script will try to install CMake for you.\n',
55 silly resolved readmeFilename: 'README.md',
55 silly resolved _id: '[email protected]',
55 silly resolved _from: 'impromptu-git@~0.1.4' } ]
56 info install [email protected] into /Users/brad/.impromptu
57 info installOne [email protected]
58 verbose from cache /Users/brad/.npm/impromptu-git/0.1.4/package/package.json
59 info /Users/brad/.impromptu/node_modules/impromptu-git unbuild
60 verbose read json /Users/brad/.impromptu/node_modules/impromptu-git/package.json
61 verbose tar unpack /Users/brad/.npm/impromptu-git/0.1.4/package.tgz
62 silly lockFile 8183487e-omptu-node-modules-impromptu-git /Users/brad/.impromptu/node_modules/impromptu-git
63 verbose lock /Users/brad/.impromptu/node_modules/impromptu-git /Users/brad/.npm/8183487e-omptu-node-modules-impromptu-git.lock
64 silly lockFile f8da9b68--impromptu-git-0-1-4-package-tgz /Users/brad/.npm/impromptu-git/0.1.4/package.tgz
65 verbose lock /Users/brad/.npm/impromptu-git/0.1.4/package.tgz /Users/brad/.npm/f8da9b68--impromptu-git-0-1-4-package-tgz.lock
66 silly gunzTarPerm modes [ '755', '644' ]
67 silly gunzTarPerm extractEntry package.json
68 silly gunzTarPerm modified mode [ 'package.json', 438, 420 ]
69 silly gunzTarPerm extractEntry .npmignore
70 silly gunzTarPerm modified mode [ '.npmignore', 438, 420 ]
71 silly gunzTarPerm extractEntry README.md
72 silly gunzTarPerm modified mode [ 'README.md', 438, 420 ]
73 silly gunzTarPerm extractEntry index.js
74 silly gunzTarPerm modified mode [ 'index.js', 438, 420 ]
75 silly gunzTarPerm extractEntry .gitmodules
76 silly gunzTarPerm modified mode [ '.gitmodules', 438, 420 ]
77 silly gunzTarPerm extractEntry Cakefile
78 silly gunzTarPerm modified mode [ 'Cakefile', 438, 420 ]
79 silly gunzTarPerm extractEntry index.coffee
80 silly gunzTarPerm modified mode [ 'index.coffee', 438, 420 ]
81 silly gunzTarPerm extractEntry LICENSE-MIT
82 silly gunzTarPerm modified mode [ 'LICENSE-MIT', 438, 420 ]
83 silly gunzTarPerm extractEntry scripts/summon/package.json
84 silly gunzTarPerm modified mode [ 'scripts/summon/package.json', 438, 420 ]
85 silly gunzTarPerm extractEntry scripts/summon/.npmignore
86 silly gunzTarPerm modified mode [ 'scripts/summon/.npmignore', 438, 420 ]
87 silly gunzTarPerm extractEntry scripts/summon/README.md
88 silly gunzTarPerm modified mode [ 'scripts/summon/README.md', 438, 420 ]
89 silly gunzTarPerm extractEntry scripts/summon/Gruntfile.coffee
90 silly gunzTarPerm modified mode [ 'scripts/summon/Gruntfile.coffee', 438, 420 ]
91 silly gunzTarPerm extractEntry scripts/summon/LICENSE-MIT
92 silly gunzTarPerm modified mode [ 'scripts/summon/LICENSE-MIT', 438, 420 ]
93 silly gunzTarPerm extractEntry scripts/summon/scripts/bootstrap
94 silly gunzTarPerm modified mode [ 'scripts/summon/scripts/bootstrap', 511, 493 ]
95 silly gunzTarPerm extractEntry scripts/summon/scripts/git/pre-commit
96 silly gunzTarPerm modified mode [ 'scripts/summon/scripts/git/pre-commit', 511, 493 ]
97 silly gunzTarPerm extractEntry scripts/summon/summon
98 silly gunzTarPerm modified mode [ 'scripts/summon/summon', 511, 493 ]
99 silly gunzTarPerm extractEntry scripts/summon/summon.coffee
100 silly gunzTarPerm modified mode [ 'scripts/summon/summon.coffee', 438, 420 ]
101 verbose read json /Users/brad/.impromptu/node_modules/impromptu-git/package.json
102 silly lockFile 8183487e-omptu-node-modules-impromptu-git /Users/brad/.impromptu/node_modules/impromptu-git
103 silly lockFile 8183487e-omptu-node-modules-impromptu-git /Users/brad/.impromptu/node_modules/impromptu-git
104 silly lockFile f8da9b68--impromptu-git-0-1-4-package-tgz /Users/brad/.npm/impromptu-git/0.1.4/package.tgz
105 silly lockFile f8da9b68--impromptu-git-0-1-4-package-tgz /Users/brad/.npm/impromptu-git/0.1.4/package.tgz
106 info preinstall [email protected]
107 verbose unsafe-perm in lifecycle true
108 silly exec sh "-c" "./scripts/summon/summon cmake"
109 silly sh,-c,./scripts/summon/summon cmake,/Users/brad/.impromptu/node_modules/impromptu-git spawning
110 info [email protected] Failed to exec preinstall script
111 info /Users/brad/.impromptu/node_modules/impromptu-git unbuild
112 verbose from cache /Users/brad/.impromptu/node_modules/impromptu-git/package.json
113 info preuninstall [email protected]
114 info uninstall [email protected]
115 verbose true,/Users/brad/.impromptu/node_modules,/Users/brad/.impromptu/node_modules unbuild [email protected]
116 info postuninstall [email protected]
117 error [email protected] preinstall: ./scripts/summon/summon cmake
117 error sh "-c" "./scripts/summon/summon cmake" failed with 8
118 error Failed at the [email protected] preinstall script.
118 error This is most likely a problem with the impromptu-git package,
118 error not with npm itself.
118 error Tell the author that this fails on your system:
118 error ./scripts/summon/summon cmake
118 error You can get their info via:
118 error npm owner ls impromptu-git
118 error There is likely additional logging output above.
119 error System Darwin 12.3.0
120 error command "/opt/boxen/nvm/v0.10.5/bin/node" "/opt/boxen/nvm/v0.10.5/bin/npm" "install"
121 error cwd /Users/brad/.impromptu
122 error node -v v0.10.5
123 error npm -v 1.2.18
124 error code ELIFECYCLE
125 verbose exit [ 1, true ]

@thebird
Copy link
Author

thebird commented May 6, 2013

screen shot 2013-05-06 at 9 13 32 am

@evansolomon
Copy link
Member

Yea, semi-known bug (but not documented, so thanks). I think it's a difference in Node's readline module <0.10 (which is used in Summon), but I haven't investigated much yet. Assigning to myself.

@ghost ghost assigned evansolomon May 6, 2013
@evansolomon
Copy link
Member

Btw, I think you should be able to get Impromptu installed by installing your prompt before running this setup.

git clone https://github.com/Impromptu/my-impromptu ~/.impromptu && cd ~/.impromptu && npm install

After doing that, you can run npm install -g use-impromptu.

In doing that, the readline stuff won't run because your prompt will already be setup. Assuming I'm right about that being the bug, doing that should avoid this problem. And actual Impromptu does run correctly on 0.8 (or at least that's what the unit tests suggest).

Edit: After reading the error more closely, you also need to install CMake, which is one of the git module's dependencies (it's another thing that can trigger readline running). brew install cmake

@evansolomon
Copy link
Member

Koop just informed me that I still didn't really read this, and the log/second screenshot is actually from 0.10. I'm not sure what the problem is exactly. I'll come take a look in a bit.

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