sao installation

93 views
Skip to first unread message

Axel Braun

unread,
Dec 20, 2015, 8:12:09 AM12/20/15
to tryton-dev
Hi Gents,

I ran into a problem with sao - I have nodejs-npm installed, but it asks for npm (bower). Is this a different npm-package?

Thanks
Axel

Cédric Krier

unread,
Dec 20, 2015, 8:30:04 AM12/20/15
to tryton-dev
On 2015-12-20 05:12, Axel Braun wrote:
> I ran into a problem with sao - I have nodejs-npm installed, but it asks
> for npm (bower). Is this a different npm-package?

npm should come with node:
https://docs.npmjs.com/getting-started/installing-node

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Axel Braun

unread,
Dec 20, 2015, 2:13:14 PM12/20/15
to tryton-dev


Am Sonntag, 20. Dezember 2015 14:30:04 UTC+1 schrieb Cédric Krier:
On 2015-12-20 05:12, Axel Braun wrote:
> I ran into a problem with sao - I have nodejs-npm installed, but it asks
> for npm (bower). Is this a different npm-package?

npm should come with node:
https://docs.npmjs.com/getting-started/installing-node

tryton@linux-jdjd:~> node -v
v4.2.1
tryton@linux-jdjd:~> npm -v
2.14.7

So, this should be sufficient....still not clear to me what this bower is

Cheers
Axel

Cédric Krier

unread,
Dec 20, 2015, 2:30:03 PM12/20/15
to tryton-dev
I don't understand the question nor the problem.
bower is a dependency of sao which help installing other dependencies.

Axel Braun

unread,
Dec 21, 2015, 2:27:50 PM12/21/15
to tryton-dev


Am Sonntag, 20. Dezember 2015 20:30:03 UTC+1 schrieb Cédric Krier:
On 2015-12-20 11:13, Axel Braun wrote:
>
>
> Am Sonntag, 20. Dezember 2015 14:30:04 UTC+1 schrieb Cédric Krier:
> >
> > On 2015-12-20 05:12, Axel Braun wrote:
> > > I ran into a problem with sao - I have nodejs-npm installed, but it asks
> > > for npm (bower). Is this a different npm-package?
> >
> > npm should come with node:
> > https://docs.npmjs.com/getting-started/installing-node
>
>
> tryton@linux-jdjd:~> node -v
> v4.2.1
> tryton@linux-jdjd:~> npm -v
> 2.14.7
>
> So, this should be sufficient....still not clear to me what this bower is

I don't understand the question nor the problem.
bower is a dependency of sao which help installing other dependencies.

The term in brackets after npm refers to the plugin (or whatever) that causes a problem:

tryton@linux-jdjd:~/Downloads/package> npm install
|
> tryto...@3.8.1 postinstall /home/tryton/Downloads/package
> bower install

? May bower anonymously report usage statistics to improve the tool over time? (Y/n) bower ENOGIT        git is not installed or not in the PATH

npm ERR! Linux 4.1.13-5-default
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! tryto...@3.8.1 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tryto...@3.8.1 postinstall script 'bower install'.
npm ERR! This is most likely a problem with the tryton-sao package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls tryton-sao
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/tryton/Downloads/package/npm-debug.log

I can send you the npm-debug.log if you like

Cédric Krier

unread,
Dec 21, 2015, 3:40:03 PM12/21/15
to tryton-dev
Maybe you have already bower installed globally and so the postinstall
call './node_modules/.bin/bower install' doesn't work.

Axel Braun

unread,
Dec 22, 2015, 5:06:17 AM12/22/15
to tryton-dev
Yes, bower is already installed, see log below.
So is the 'bower install' refering to the tryton-sao?


Debug-output:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
2 info using n...@2.14.7
3 info using no...@v4.2.1
4 verbose readDependencies loading dependencies from /home/tryton/Downloads/package/package.json
5 verbose install where, deps [ '/home/tryton/Downloads/package',
5 verbose install   [ 'bower',
5 verbose install     'grunt',
5 verbose install     'grunt-cli',
5 verbose install     'grunt-contrib-concat',
5 verbose install     'grunt-contrib-jshint',
5 verbose install     'grunt-contrib-less',
5 verbose install     'grunt-contrib-nodeunit',
5 verbose install     'grunt-contrib-uglify',
5 verbose install     'grunt-contrib-watch',
5 verbose install     'grunt-po2json',
5 verbose install     'grunt-shell',
5 verbose install     'grunt-xgettext' ] ]
6 verbose install where, peers [ '/home/tryton/Downloads/package', [] ]
7 verbose installManyTop reading for lifecycle /home/tryton/Downloads/package/package.json
8 info preinstall tryto...@3.8.1
9 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/bower/package.json
10 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt/package.json
11 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-cli/package.json
12 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-concat/package.json
13 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-jshint/package.json
14 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-less/package.json
15 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-nodeunit/package.json
16 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-uglify/package.json
17 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-watch/package.json
18 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-po2json/package.json
19 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-shell/package.json
20 verbose installManyTop reading scoped package data from /home/tryton/Downloads/package/node_modules/grunt-xgettext/package.json
21 info package.json gr...@0.4.5 No license field.
22 info package.json grun...@0.1.13 No license field.
23 info package.json grunt-cont...@0.5.1 No license field.
24 info package.json grunt-contr...@0.4.1 No license field.
25 info package.json grunt-con...@0.6.1 No license field.
26 info package.json grunt-...@0.3.0 No license field.
27 info package.json grunt-x...@0.3.5 No license field.
28 verbose readDependencies loading dependencies from /home/tryton/Downloads/package/package.json
29 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/bower/package.json
30 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt/package.json
31 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-cli/package.json
32 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-concat/package.json
33 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-jshint/package.json
34 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-less/package.json
35 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-nodeunit/package.json
36 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-uglify/package.json
37 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-contrib-watch/package.json
38 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-po2json/package.json
39 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-shell/package.json
40 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/grunt-xgettext/package.json
41 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/.bin/bower/package.json
42 verbose targetResolver reading package data from /home/tryton/Downloads/package/node_modules/.bin/grunt/package.json
43 verbose already installed skipping grunt@~0.4.5 /home/tryton/Downloads/package
44 verbose already installed skipping grunt-cli@~0.1.13 /home/tryton/Downloads/package
45 verbose already installed skipping grunt-contrib-concat@^0.5.1 /home/tryton/Downloads/package
46 verbose already installed skipping grunt-contrib-jshint@^0.11.2 /home/tryton/Downloads/package
47 verbose already installed skipping grunt-contrib-less@^1.0.1 /home/tryton/Downloads/package
48 verbose already installed skipping grunt-contrib-nodeunit@~0.4.1 /home/tryton/Downloads/package
49 verbose already installed skipping grunt-contrib-uglify@^0.9.1 /home/tryton/Downloads/package
50 verbose already installed skipping grunt-contrib-watch@~0.6.1 /home/tryton/Downloads/package
51 verbose already installed skipping grunt-po2json@^0.3.0 /home/tryton/Downloads/package
52 verbose already installed skipping grunt-shell@^1.1.2 /home/tryton/Downloads/package
53 verbose already installed skipping grunt-xgettext@^0.3.5 /home/tryton/Downloads/package
54 verbose already installed skipping bower@^1.4.1 /home/tryton/Downloads/package
55 silly install resolved []
56 info build /home/tryton/Downloads/package
57 info linkStuff tryto...@3.8.1
58 silly linkStuff tryto...@3.8.1 has /home/tryton/Downloads as its parent node_modules
59 verbose linkBins tryto...@3.8.1
60 verbose linkMans tryto...@3.8.1
61 verbose rebuildBundles tryto...@3.8.1
62 verbose rebuildBundles [ '.bin',
62 verbose rebuildBundles   'bower',
62 verbose rebuildBundles   'grunt',
62 verbose rebuildBundles   'grunt-cli',
62 verbose rebuildBundles   'grunt-contrib-concat',
62 verbose rebuildBundles   'grunt-contrib-jshint',
62 verbose rebuildBundles   'grunt-contrib-less',
62 verbose rebuildBundles   'grunt-contrib-nodeunit',
62 verbose rebuildBundles   'grunt-contrib-uglify',
62 verbose rebuildBundles   'grunt-contrib-watch',
62 verbose rebuildBundles   'grunt-po2json',
62 verbose rebuildBundles   'grunt-shell',
62 verbose rebuildBundles   'grunt-xgettext' ]
63 info install tryto...@3.8.1
64 info postinstall tryto...@3.8.1
65 verbose unsafe-perm in lifecycle true
66 info tryto...@3.8.1 Failed to exec postinstall script
67 verbose stack Error: tryto...@3.8.1 postinstall: `bower install`
67 verbose stack Exit status 1
67 verbose stack     at EventEmitter.<anonymous> (/usr/lib64/node_modules/npm/lib/utils/lifecycle.js:214:16)
67 verbose stack     at emitTwo (events.js:87:13)
67 verbose stack     at EventEmitter.emit (events.js:172:7)
67 verbose stack     at ChildProcess.<anonymous> (/usr/lib64/node_modules/npm/lib/utils/spawn.js:24:14)
67 verbose stack     at emitTwo (events.js:87:13)
67 verbose stack     at ChildProcess.emit (events.js:172:7)
67 verbose stack     at maybeClose (internal/child_process.js:818:16)
67 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
68 verbose pkgid tryto...@3.8.1
69 verbose cwd /home/tryton/Downloads/package
70 error Linux 4.1.13-5-default
71 error argv "/usr/bin/node" "/usr/bin/npm" "install"
72 error node v4.2.1
73 error npm  v2.14.7
74 error code ELIFECYCLE
75 error tryto...@3.8.1 postinstall: `bower install`
75 error Exit status 1
76 error Failed at the tryto...@3.8.1 postinstall script 'bower install'.
76 error This is most likely a problem with the tryton-sao package,
76 error not with npm itself.
76 error Tell the author that this fails on your system:
76 error     bower install
76 error You can get their info via:
76 error     npm owner ls tryton-sao
76 error There is likely additional logging output above.
77 verbose exit [ 1, true ]

Cédric Krier

unread,
Dec 22, 2015, 5:25:03 AM12/22/15
to tryton-dev
On 2015-12-22 02:06, Axel Braun wrote:
> > Maybe you have already bower installed globally and so the postinstall
> > call './node_modules/.bin/bower install' doesn't work
> >
>
>
> Yes, bower is already installed, see log below.

So it should not be installed globally.
The npm package system is quiet strange but if someone know how to get
the postinstall working in both case, local and global install (maybe
changing the PATH). Please make a patch.

> So is the 'bower install' refering to the tryton-sao?

I don't understand this question.

Axel Braun

unread,
Dec 23, 2015, 5:19:59 AM12/23/15
to tryton-dev


Am Dienstag, 22. Dezember 2015 11:25:03 UTC+1 schrieb Cédric Krier:
On 2015-12-22 02:06, Axel Braun wrote:
> > Maybe you have already bower installed globally and so the postinstall
> > call './node_modules/.bin/bower install' doesn't work
> >
>
>
> Yes, bower is already installed, see log below.

So it should not be installed globally.
The npm package system is quiet strange but if someone know how to get
the postinstall working in both case, local and global install (maybe
changing the PATH). Please make a patch.

Not sure that it is related to local or not local: git needs to be installed, otherwise it creates the above error.
Will come back on this as soon as I have online access again...
 

> So is the 'bower install' refering to the tryton-sao?

I don't understand this question.

the question was what 'bower install' does. As it looks to me now, it installs additional components that are used by nodejs/sao from git.
This sounds smart, but in terms of packaging it is a nightmare (you should know your dependencies once you create the package). But seems to be nodejs standard.....


Axel Braun

unread,
Dec 23, 2015, 12:51:19 PM12/23/15
to tryton-dev


Am Mittwoch, 23. Dezember 2015 11:19:59 UTC+1 schrieb Axel Braun:


Am Dienstag, 22. Dezember 2015 11:25:03 UTC+1 schrieb Cédric Krier:
On 2015-12-22 02:06, Axel Braun wrote:
> > Maybe you have already bower installed globally and so the postinstall
> > call './node_modules/.bin/bower install' doesn't work
> >
>
>
> Yes, bower is already installed, see log below.

So it should not be installed globally.
The npm package system is quiet strange but if someone know how to get
the postinstall working in both case, local and global install (maybe
changing the PATH). Please make a patch.

Not sure that it is related to local or not local: git needs to be installed, otherwise it creates the above error.
Will come back on this as soon as I have online access again...
Reply all
Reply to author
Forward
0 new messages