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

installing jassa module #1262

Closed
waeltut opened this issue Aug 14, 2017 · 3 comments
Closed

installing jassa module #1262

waeltut opened this issue Aug 14, 2017 · 3 comments

Comments

@waeltut
Copy link

waeltut commented Aug 14, 2017

  • Node Version: 8.2.1
  • NPM Version: 5.3.0
  • Platform: UBUNTU 16.04
  • Compiler: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) -->
  • Module: npm install jassa
  • Python: 2.7.13 (default, Aug 14 2017, 15:08:31)
the installation of jassa module ends with error : `make` failed with exit code: 2
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install', 'jassa' ]
2 info using [email protected]
3 info using [email protected]
4 verbose config Skipping project config: /home/wamo/.npmrc. (matches userconfig)
5 verbose npm-session 2ad8b776b6af5c85
6 silly install loadCurrentTree
7 silly install readLocalPackageData
8 http fetch GET 200 https://registry.npmjs.org/jassa 15ms (from cache)
9 silly pacote tag manifest for jassa@latest fetched in 31ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 silly install loadShrinkwrap
13 silly install loadAllDepsIntoIdealTree
14 silly resolveWithNewModule [email protected] checking installable status
15 http fetch GET 200 https://registry.npmjs.org/jquery 5ms (from cache)
16 silly pacote range manifest for jquery@~1.8.3 fetched in 10ms
17 warn deprecated [email protected]: Versions of the jquery npm package older than 1.9.0 are patched versions that don't work in web browsers. Please upgrade to >=1.11.0.
18 silly resolveWithNewModule [email protected] checking installable status
19 http fetch GET 200 https://registry.npmjs.org/xmlhttprequest 9ms (from cache)
20 http fetch GET 200 https://registry.npmjs.org/contextify 10ms (from cache)
21 silly pacote range manifest for xmlhttprequest@~1.4.2 fetched in 12ms
22 silly resolveWithNewModule [email protected] checking installable status
23 silly pacote range manifest for contextify@~0.1.3 fetched in 12ms
24 silly resolveWithNewModule [email protected] checking installable status
25 http fetch GET 200 https://registry.npmjs.org/bindings 3ms (from cache)
26 http fetch GET 200 https://registry.npmjs.org/nan 3ms (from cache)
27 silly pacote range manifest for bindings@^1.2.1 fetched in 5ms
28 silly resolveWithNewModule [email protected] checking installable status
29 silly pacote range manifest for nan@^2.1.0 fetched in 5ms
30 silly resolveWithNewModule [email protected] checking installable status
31 silly currentTree wamo
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├─┬ [email protected]
31 silly currentTree │ └── [email protected]
31 silly currentTree ├─┬ [email protected]
31 silly currentTree │ └── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├─┬ [email protected]
31 silly currentTree │ └── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├─┬ [email protected]
31 silly currentTree │ └── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├─┬ [email protected]
31 silly currentTree │ └── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├── [email protected]
31 silly currentTree ├─┬ [email protected]
31 silly currentTree │ └── [email protected]
31 silly currentTree └── [email protected]
32 silly idealTree wamo
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├─┬ [email protected]
32 silly idealTree │ └── [email protected]
32 silly idealTree ├─┬ [email protected]
32 silly idealTree │ └── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├─┬ [email protected]
32 silly idealTree │ └── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├─┬ [email protected]
32 silly idealTree │ └── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├─┬ [email protected]
32 silly idealTree │ └── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├─┬ [email protected]
32 silly idealTree │ └── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├─┬ [email protected]
32 silly idealTree │ └── [email protected]
32 silly idealTree └── [email protected]
33 silly install generateActionsToTake
34 silly diffTrees action count 6
35 silly diffTrees add [email protected]
36 silly diffTrees add [email protected]
37 silly diffTrees add [email protected]
38 silly diffTrees add [email protected]
39 silly diffTrees add [email protected]
40 silly diffTrees add [email protected]
41 silly decomposeActions action count 48
42 silly decomposeActions fetch [email protected]
43 silly decomposeActions extract [email protected]
44 silly decomposeActions preinstall [email protected]
45 silly decomposeActions build [email protected]
46 silly decomposeActions install [email protected]
47 silly decomposeActions postinstall [email protected]
48 silly decomposeActions finalize [email protected]
49 silly decomposeActions refresh-package-json [email protected]
50 silly decomposeActions fetch [email protected]
51 silly decomposeActions extract [email protected]
52 silly decomposeActions preinstall [email protected]
53 silly decomposeActions build [email protected]
54 silly decomposeActions install [email protected]
55 silly decomposeActions postinstall [email protected]
56 silly decomposeActions finalize [email protected]
57 silly decomposeActions refresh-package-json [email protected]
58 silly decomposeActions fetch [email protected]
59 silly decomposeActions extract [email protected]
60 silly decomposeActions preinstall [email protected]
61 silly decomposeActions build [email protected]
62 silly decomposeActions install [email protected]
63 silly decomposeActions postinstall [email protected]
64 silly decomposeActions finalize [email protected]
65 silly decomposeActions refresh-package-json [email protected]
66 silly decomposeActions fetch [email protected]
67 silly decomposeActions extract [email protected]
68 silly decomposeActions preinstall [email protected]
69 silly decomposeActions build [email protected]
70 silly decomposeActions install [email protected]
71 silly decomposeActions postinstall [email protected]
72 silly decomposeActions finalize [email protected]
73 silly decomposeActions refresh-package-json [email protected]
74 silly decomposeActions fetch [email protected]
75 silly decomposeActions extract [email protected]
76 silly decomposeActions preinstall [email protected]
77 silly decomposeActions build [email protected]
78 silly decomposeActions install [email protected]
79 silly decomposeActions postinstall [email protected]
80 silly decomposeActions finalize [email protected]
81 silly decomposeActions refresh-package-json [email protected]
82 silly decomposeActions fetch [email protected]
83 silly decomposeActions extract [email protected]
84 silly decomposeActions preinstall [email protected]
85 silly decomposeActions build [email protected]
86 silly decomposeActions install [email protected]
87 silly decomposeActions postinstall [email protected]
88 silly decomposeActions finalize [email protected]
89 silly decomposeActions refresh-package-json [email protected]
90 silly install executeActions
91 silly doSerial global-install 48
92 verbose correctMkdir /home/wamo/.npm/_locks correctMkdir not in flight; initializing
93 verbose lock using /home/wamo/.npm/_locks/staging-0549fb20fc9b4533.lock for /home/wamo/node_modules/.staging
94 silly doParallel extract 48
95 silly extract [email protected]
96 silly extract [email protected]
97 silly extract [email protected]
98 silly extract [email protected]
99 silly extract [email protected]
100 silly extract [email protected]
101 silly doReverseSerial unbuild 48
102 silly doSerial remove 48
103 silly doSerial move 48
104 silly doSerial finalize 48
105 silly finalize /home/wamo/node_modules/bindings
106 silly finalize /home/wamo/node_modules/jquery/node_modules/xmlhttprequest
107 silly finalize /home/wamo/node_modules/nan
108 silly finalize /home/wamo/node_modules/contextify
109 silly finalize /home/wamo/node_modules/jquery
110 silly finalize /home/wamo/node_modules/jassa
111 silly doParallel refresh-package-json 48
112 silly refresh-package-json /home/wamo/node_modules/bindings
113 silly refresh-package-json /home/wamo/node_modules/jquery/node_modules/xmlhttprequest
114 silly refresh-package-json /home/wamo/node_modules/nan
115 silly refresh-package-json /home/wamo/node_modules/contextify
116 silly refresh-package-json /home/wamo/node_modules/jquery
117 silly refresh-package-json /home/wamo/node_modules/jassa
118 silly doParallel preinstall 48
119 silly preinstall [email protected]
120 info lifecycle [email protected]~preinstall: [email protected]
121 silly preinstall [email protected]
122 info lifecycle [email protected]~preinstall: [email protected]
123 silly preinstall [email protected]
124 info lifecycle [email protected]~preinstall: [email protected]
125 silly preinstall [email protected]
126 info lifecycle [email protected]~preinstall: [email protected]
127 silly preinstall [email protected]
128 info lifecycle [email protected]~preinstall: [email protected]
129 silly preinstall [email protected]
130 info lifecycle [email protected]~preinstall: [email protected]
131 silly doSerial build 48
132 silly build [email protected]
133 info linkStuff [email protected]
134 silly linkStuff [email protected] has /home/wamo/node_modules as its parent node_modules
135 verbose linkBins [email protected]
136 verbose linkMans [email protected]
137 silly build [email protected]
138 info linkStuff [email protected]
139 silly linkStuff [email protected] has /home/wamo/node_modules/jquery/node_modules as its parent node_modules
140 verbose linkBins [email protected]
141 verbose linkMans [email protected]
142 silly build [email protected]
143 info linkStuff [email protected]
144 silly linkStuff [email protected] has /home/wamo/node_modules as its parent node_modules
145 verbose linkBins [email protected]
146 verbose linkMans [email protected]
147 silly build [email protected]
148 info linkStuff [email protected]
149 silly linkStuff [email protected] has /home/wamo/node_modules as its parent node_modules
150 verbose linkBins [email protected]
151 verbose linkMans [email protected]
152 silly build [email protected]
153 info linkStuff [email protected]
154 silly linkStuff [email protected] has /home/wamo/node_modules as its parent node_modules
155 verbose linkBins [email protected]
156 verbose linkMans [email protected]
157 silly build [email protected]
158 info linkStuff [email protected]
159 silly linkStuff [email protected] has /home/wamo/node_modules as its parent node_modules
160 verbose linkBins [email protected]
161 verbose linkMans [email protected]
162 silly doSerial global-link 48
163 silly doParallel update-linked 48
164 silly doSerial install 48
165 silly install [email protected]
166 info lifecycle [email protected]~install: [email protected]
167 silly install [email protected]
168 info lifecycle [email protected]~install: [email protected]
169 silly install [email protected]
170 info lifecycle [email protected]~install: [email protected]
171 silly install [email protected]
172 info lifecycle [email protected]~install: [email protected]
173 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
174 verbose lifecycle [email protected]~install: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/wamo/node_modules/contextify/node_modules/.bin:/home/wamo/node_modules/.bin:/home/wamo/bin:/home/wamo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
175 verbose lifecycle [email protected]~install: CWD: /home/wamo/node_modules/contextify
176 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild' ]
177 silly lifecycle [email protected]~install: Returned: code: 1  signal: null
178 info lifecycle [email protected]~install: Failed to exec install script
179 verbose unlock done using /home/wamo/.npm/_locks/staging-0549fb20fc9b4533.lock for /home/wamo/node_modules/.staging
180 warn enoent ENOENT: no such file or directory, open '/home/wamo/package.json'
181 verbose enoent This is related to npm not being able to find a file.
182 warn wamo No description
183 warn wamo No repository field.
184 warn wamo No README data
185 warn wamo No license field.
186 verbose stack Error: [email protected] install: `node-gyp rebuild`
186 verbose stack Exit status 1
186 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
186 verbose stack     at emitTwo (events.js:125:13)
186 verbose stack     at EventEmitter.emit (events.js:213:7)
186 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
186 verbose stack     at emitTwo (events.js:125:13)
186 verbose stack     at ChildProcess.emit (events.js:213:7)
186 verbose stack     at maybeClose (internal/child_process.js:921:16)
186 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
187 verbose pkgid [email protected]
188 verbose cwd /home/wamo/arq/testingClient
189 verbose Linux 4.4.0-62-generic
190 verbose argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "jassa"
191 verbose node v8.2.1
192 verbose npm  v5.3.0
193 error code ELIFECYCLE
194 error errno 1
195 error [email protected] install: `node-gyp rebuild`
195 error Exit status 1
196 error Failed at the [email protected] install script.
196 error This is probably not a problem with npm. There is likely additional logging output above.
197 verbose exit [ 1, true ]
@refack
Copy link
Contributor

refack commented Aug 14, 2017

Hello @waeltut
Your log indicates npm tries to install contextify which is incompatible with node >= 0.12.
AFAIK this comes from a dependency of jassa: "jquery": "~1.8.3"
You could try npm i [email protected] --ignore-scripts or even npm i jassa --ignore-scripts, if that does works a very crude hack might be to unzip https://github.com/brianmcd/contextify/tree/v0.1.15 into your node_module directory and deleting it's binding.gyp so that npm will not try to compile it.

@waeltut
Copy link
Author

waeltut commented Aug 14, 2017

Hi @refack
I tried but it did not work. yes I already downloaded the module manually but It would be better from npm to use npm directly. I already created an issue on the module github page.
Thank you for the support.

@refack
Copy link
Contributor

refack commented Aug 14, 2017

@waeltut there are several involved parties here

  1. Your code
  2. jassa with the old jquery dependency (~1.8.3)
  3. npm trying to install according to semver rules - ~ allowing only semver patch updates
  4. node-gyp that tries to compile [email protected]

The only way I can think of for layer (4) to solve this is to have a blacklist of modules to not compile. That is problematic since we can not guarantee that the requiring module will work correctly without the compiled sub-module. So this will be a partial mitigation at best.

If you would like to pursue this and submit a PR

node-gyp/lib/build.js

Lines 20 to 22 in 72afdd6

function build (gyp, argv, callback) {
var platformMake = 'make'
if (process.platform === 'aix') {

is a good point to insert such logic.

I'm closing this issue, since it was solved with a workaround, and an issue was opened in the target repo GeoKnow/Jassa-Core#32
Feel free to reopen is you think I'm wrong or if you have further questions or more information.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants