Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto run a java programm in terminal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Wed Feb 13, 2019 8:23 am    Post subject: howto run a java programm in terminal Reply with quote

how do i run a java .js / json file/programm in the terminal ( https://github.com/animetosho/Nyuu )
how do i start it?
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7896
Location: ~Brussels - Belgique

PostPosted: Wed Feb 13, 2019 8:31 am    Post subject: Reply with quote

Hi!

This is not Java, but Javascript.

It runs with nodejs

Emerge nodejs and follow the README to install and use that program (seems you simply need to type "npm install -g nyuu").
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Wed Feb 13, 2019 8:38 am    Post subject: Reply with quote

ah,ok
i will try, but
Code:
npm install -g nyuu
/usr/bin/nyuu -> /usr/lib64/node_modules/nyuu/bin/nyuu.js

> yencode@1.0.8 install /usr/lib64/node_modules/nyuu/node_modules/yencode
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib64/node_modules/nyuu/node_modules/yencode/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib64/node_modules/nyuu/node_modules/yencode/.node-gyp'
gyp ERR! System Linux 4.9.140-gentoo
gyp ERR! command "/usr/bin/node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib64/node_modules/nyuu/node_modules/yencode
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yencode@1.0.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yencode@1.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-13T08_34_57_559Z-debug.log


Code:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'nyuu' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose npm-session 296d3a29132b1fa2
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/nyuu 802ms
8 silly pacote tag manifest for nyuu@latest fetched in 815ms
9 timing stage:loadCurrentTree Completed in 949ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule nyuu@0.3.8 checking installable status
17 http fetch GET 200 https://registry.npmjs.org/async 29ms
18 silly pacote range manifest for async@0.2.0 - 2.9999.9999 fetched in 34ms
19 silly resolveWithNewModule async@2.6.2 checking installable status
20 http fetch GET 200 https://registry.npmjs.org/yencode 796ms
21 silly pacote range manifest for yencode@>=1.0.6 fetched in 797ms
22 silly resolveWithNewModule yencode@1.0.8 checking installable status
23 http fetch GET 200 https://registry.npmjs.org/lodash 41ms
24 silly pacote range manifest for lodash@^4.17.11 fetched in 43ms
25 silly resolveWithNewModule lodash@4.17.11 checking installable status
26 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 855ms
27 timing stage:loadIdealTree Completed in 859ms
28 silly currentTree lib64
29 silly idealTree lib64
29 silly idealTree └─┬ nyuu@0.3.8
29 silly idealTree   ├── async@2.6.2
29 silly idealTree   ├── lodash@4.17.11
29 silly idealTree   └── yencode@1.0.8
30 silly install generateActionsToTake
31 timing stage:generateActionsToTake Completed in 5ms
32 silly diffTrees action count 4
33 silly diffTrees add lodash@4.17.11
34 silly diffTrees add async@2.6.2
35 silly diffTrees add yencode@1.0.8
36 silly diffTrees add nyuu@0.3.8
37 silly decomposeActions action count 32
38 silly decomposeActions fetch lodash@4.17.11
39 silly decomposeActions extract lodash@4.17.11
40 silly decomposeActions preinstall lodash@4.17.11
41 silly decomposeActions build lodash@4.17.11
42 silly decomposeActions install lodash@4.17.11
43 silly decomposeActions postinstall lodash@4.17.11
44 silly decomposeActions finalize lodash@4.17.11
45 silly decomposeActions refresh-package-json lodash@4.17.11
46 silly decomposeActions fetch async@2.6.2
47 silly decomposeActions extract async@2.6.2
48 silly decomposeActions preinstall async@2.6.2
49 silly decomposeActions build async@2.6.2
50 silly decomposeActions install async@2.6.2
51 silly decomposeActions postinstall async@2.6.2
52 silly decomposeActions finalize async@2.6.2
53 silly decomposeActions refresh-package-json async@2.6.2
54 silly decomposeActions fetch yencode@1.0.8
55 silly decomposeActions extract yencode@1.0.8
56 silly decomposeActions preinstall yencode@1.0.8
57 silly decomposeActions build yencode@1.0.8
58 silly decomposeActions install yencode@1.0.8
59 silly decomposeActions postinstall yencode@1.0.8
60 silly decomposeActions finalize yencode@1.0.8
61 silly decomposeActions refresh-package-json yencode@1.0.8
62 silly decomposeActions fetch nyuu@0.3.8
63 silly decomposeActions extract nyuu@0.3.8
64 silly decomposeActions preinstall nyuu@0.3.8
65 silly decomposeActions build nyuu@0.3.8
66 silly decomposeActions install nyuu@0.3.8
67 silly decomposeActions postinstall nyuu@0.3.8
68 silly decomposeActions finalize nyuu@0.3.8
69 silly decomposeActions refresh-package-json nyuu@0.3.8
70 silly install executeActions
71 silly doSerial global-install 32
72 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
73 verbose makeDirectory /root/.npm/_locks creation not in flight; initializing
74 silly makeDirectory /root/.npm/_locks uid: 0 gid: 0
75 verbose lock using /root/.npm/_locks/staging-5416abac55ed2dd0.lock for /usr/lib64/node_modules/.staging
76 silly doParallel extract 4
77 silly extract lodash@4.17.11
78 silly extract async@2.6.2
79 silly extract yencode@1.0.8
80 silly extract nyuu@0.3.8
81 silly tarball trying lodash@^4.17.11 by hash: sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==
82 silly tarball trying async@0.2.0 - 2.9999.9999 by hash: sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==
83 silly tarball trying yencode@>=1.0.6 by hash: sha1-wbMNhhhoIqu3VuFAbuZESG+rJKM=
84 silly tarball trying nyuu@latest by hash: sha1-ghR8Tr/LUS6hMzQOe8ZdUbiHezU=
85 silly tarball no local data for lodash@^4.17.11. Extracting by manifest.
86 silly tarball no local data for async@0.2.0 - 2.9999.9999. Extracting by manifest.
87 silly tarball no local data for yencode@>=1.0.6. Extracting by manifest.
88 silly tarball no local data for nyuu@latest. Extracting by manifest.
89 http fetch GET 200 https://registry.npmjs.org/async/-/async-2.6.2.tgz 119ms
90 silly extract async@0.2.0 - 2.9999.9999 extracted to /usr/lib64/node_modules/.staging/async-c9d213f4 (150ms)
91 http fetch GET 200 https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz 197ms
92 silly extract lodash@^4.17.11 extracted to /usr/lib64/node_modules/.staging/lodash-7574e916 (286ms)
93 http fetch GET 200 https://registry.npmjs.org/nyuu/-/nyuu-0.3.8.tgz 1253ms
94 silly extract nyuu@latest extracted to /usr/lib64/node_modules/.staging/nyuu-3f5370b6 (1283ms)
95 http fetch GET 200 https://registry.npmjs.org/yencode/-/yencode-1.0.8.tgz 1322ms
96 silly extract yencode@>=1.0.6 extracted to /usr/lib64/node_modules/.staging/yencode-252186d9 (1341ms)
97 timing action:extract Completed in 1344ms
98 silly doReverseSerial unbuild 32
99 silly doSerial remove 32
100 silly doSerial move 32
101 silly doSerial finalize 32
102 silly finalize /usr/lib64/node_modules/nyuu/node_modules/lodash
103 silly finalize /usr/lib64/node_modules/nyuu/node_modules/async
104 silly finalize /usr/lib64/node_modules/nyuu/node_modules/yencode
105 silly finalize /usr/lib64/node_modules/nyuu
106 timing action:finalize Completed in 7ms
107 silly doParallel refresh-package-json 4
108 silly refresh-package-json /usr/lib64/node_modules/nyuu/node_modules/lodash
109 silly refresh-package-json /usr/lib64/node_modules/nyuu/node_modules/async
110 silly refresh-package-json /usr/lib64/node_modules/nyuu/node_modules/yencode
111 silly refresh-package-json /usr/lib64/node_modules/nyuu
112 timing action:refresh-package-json Completed in 22ms
113 silly doParallel preinstall 4
114 silly preinstall lodash@4.17.11
115 info lifecycle lodash@4.17.11~preinstall: lodash@4.17.11
116 silly preinstall async@2.6.2
117 info lifecycle async@2.6.2~preinstall: async@2.6.2
118 silly preinstall yencode@1.0.8
119 info lifecycle yencode@1.0.8~preinstall: yencode@1.0.8
120 silly preinstall nyuu@0.3.8
121 info lifecycle nyuu@0.3.8~preinstall: nyuu@0.3.8
122 timing action:preinstall Completed in 1ms
123 silly doSerial build 32
124 silly build lodash@4.17.11
125 info linkStuff lodash@4.17.11
126 silly linkStuff lodash@4.17.11 has /usr/lib64/node_modules/nyuu/node_modules as its parent node_modules
127 silly linkStuff lodash@4.17.11 is part of a global install
128 silly linkStuff lodash@4.17.11 is installed into a global node_modules
129 silly build async@2.6.2
130 info linkStuff async@2.6.2
131 silly linkStuff async@2.6.2 has /usr/lib64/node_modules/nyuu/node_modules as its parent node_modules
132 silly linkStuff async@2.6.2 is part of a global install
133 silly linkStuff async@2.6.2 is installed into a global node_modules
134 silly build yencode@1.0.8
135 info linkStuff yencode@1.0.8
136 silly linkStuff yencode@1.0.8 has /usr/lib64/node_modules/nyuu/node_modules as its parent node_modules
137 silly linkStuff yencode@1.0.8 is part of a global install
138 silly linkStuff yencode@1.0.8 is installed into a global node_modules
139 silly build nyuu@0.3.8
140 info linkStuff nyuu@0.3.8
141 silly linkStuff nyuu@0.3.8 has /usr/lib64/node_modules as its parent node_modules
142 silly linkStuff nyuu@0.3.8 is part of a global install
143 silly linkStuff nyuu@0.3.8 is installed into a global node_modules
144 silly linkStuff nyuu@0.3.8 is installed into the top-level global node_modules
145 verbose linkBins [ { nyuu: 'bin/nyuu.js' }, '/usr/bin', true ]
146 timing action:build Completed in 6ms
147 silly doSerial global-link 32
148 silly doParallel update-linked 0
149 silly doSerial install 32
150 silly install lodash@4.17.11
151 info lifecycle lodash@4.17.11~install: lodash@4.17.11
152 silly install async@2.6.2
153 info lifecycle async@2.6.2~install: async@2.6.2
154 silly install yencode@1.0.8
155 info lifecycle yencode@1.0.8~install: yencode@1.0.8
156 verbose lifecycle yencode@1.0.8~install: unsafe-perm in lifecycle false
157 verbose lifecycle yencode@1.0.8~install: PATH: /usr/lib64/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib64/node_modules/nyuu/node_modules/yencode/node_modules/.bin:/usr/lib64/node_modules/nyuu/node_modules/.bin:/usr/lib64/node_modules/.bin:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
158 verbose lifecycle yencode@1.0.8~install: CWD: /usr/lib64/node_modules/nyuu/node_modules/yencode
159 silly lifecycle yencode@1.0.8~install: Args: [ '-c', 'node-gyp rebuild' ]
160 silly lifecycle yencode@1.0.8~install: Returned: code: 1  signal: null
161 info lifecycle yencode@1.0.8~install: Failed to exec install script
162 timing action:install Completed in 279ms
163 verbose unlock done using /root/.npm/_locks/staging-5416abac55ed2dd0.lock for /usr/lib64/node_modules/.staging
164 timing stage:rollbackFailedOptional Completed in 105ms
165 timing stage:runTopLevelLifecycles Completed in 3586ms
166 verbose stack Error: yencode@1.0.8 install: `node-gyp rebuild`
166 verbose stack Exit status 1
166 verbose stack     at EventEmitter.<anonymous> (/usr/lib64/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
166 verbose stack     at emitTwo (events.js:126:13)
166 verbose stack     at EventEmitter.emit (events.js:214:7)
166 verbose stack     at ChildProcess.<anonymous> (/usr/lib64/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
166 verbose stack     at emitTwo (events.js:126:13)
166 verbose stack     at ChildProcess.emit (events.js:214:7)
166 verbose stack     at maybeClose (internal/child_process.js:915:16)
166 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
167 verbose pkgid yencode@1.0.8
168 verbose cwd /home/sarah/Downloads/Nyuu-master
169 verbose Linux 4.9.140-gentoo
170 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "nyuu"
171 verbose node v8.12.0
172 verbose npm  v6.4.1
173 error code ELIFECYCLE
174 error errno 1
175 error yencode@1.0.8 install: `node-gyp rebuild`
175 error Exit status 1
176 error Failed at the yencode@1.0.8 install script.
176 error This is probably not a problem with npm. There is likely additional logging output above.
177 verbose exit [ 1, true ]


do i need anything special?


Last edited by SarahS93 on Mon Feb 18, 2019 11:06 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21335
Location: here

PostPosted: Wed Feb 13, 2019 8:57 am    Post subject: Reply with quote

Try the hints proposed here (for first hint you should change path with /usr/lib64/node_modules/nyuu/node_modules/yencode/.node-gyp)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Mon Feb 18, 2019 8:45 am    Post subject: Reply with quote

fedeliallalinea wrote:
Try the hints proposed here (for first hint you should change path with /usr/lib64/node_modules/nyuu/node_modules/yencode/.node-gyp)

which path to what?

if i try to install yencode first, then comes this
(yencode is allways installed on my system)
Code:
*  net-news/yencode
      Latest version available: 0.46
      Latest version installed: 0.46


Code:
npm install -g yencode

> yencode@1.0.8 install /usr/lib64/node_modules/yencode
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib64/node_modules/yencode/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib64/node_modules/yencode/.node-gyp'
gyp ERR! System Linux 4.9.140-gentoo
gyp ERR! command "/usr/bin/node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib64/node_modules/yencode
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yencode@1.0.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yencode@1.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-18T08_44_39_316Z-debug.lo
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21335
Location: here

PostPosted: Mon Feb 18, 2019 10:42 am    Post subject: Reply with quote

SarahS93 wrote:
which path to what?

You should try to create directory
Code:
# mkdir -p /usr/lib64/node_modules/nyuu/node_modules/yencode/.node-gyp

and the try to reinstall nyuu (sudo npm install -g nyuu)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Mon Feb 18, 2019 11:08 am    Post subject: Reply with quote

Code:
sudo npm install -g yencode

> yencode@1.0.8 install /usr/lib64/node_modules/yencode
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib64/node_modules/yencode/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib64/node_modules/yencode/.node-gyp'
gyp ERR! System Linux 4.9.140-gentoo
gyp ERR! command "/usr/bin/node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib64/node_modules/yencode
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yencode@1.0.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yencode@1.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-18T11_03_44_805Z-debug.log


Code:
cat /root/.npm/_logs/2019-02-18T11_03_44_805Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'yencode' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose npm-session d4256fe3bdc8773c
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/yencode 14ms (from cache)
8 silly pacote tag manifest for yencode@latest fetched in 25ms
9 timing stage:loadCurrentTree Completed in 154ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule yencode@1.0.8 checking installable status
17 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
18 timing stage:loadIdealTree Completed in 8ms
19 silly currentTree lib64
20 silly idealTree lib64
20 silly idealTree └── yencode@1.0.8
21 silly install generateActionsToTake
22 timing stage:generateActionsToTake Completed in 4ms
23 silly diffTrees action count 1
24 silly diffTrees add yencode@1.0.8
25 silly decomposeActions action count 8
26 silly decomposeActions fetch yencode@1.0.8
27 silly decomposeActions extract yencode@1.0.8
28 silly decomposeActions preinstall yencode@1.0.8
29 silly decomposeActions build yencode@1.0.8
30 silly decomposeActions install yencode@1.0.8
31 silly decomposeActions postinstall yencode@1.0.8
32 silly decomposeActions finalize yencode@1.0.8
33 silly decomposeActions refresh-package-json yencode@1.0.8
34 silly install executeActions
35 silly doSerial global-install 8
36 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
37 verbose lock using /root/.npm/_locks/staging-5416abac55ed2dd0.lock for /usr/lib64/node_modules/.staging
38 silly doParallel extract 1
39 silly extract yencode@1.0.8
40 silly tarball trying yencode@latest by hash: sha1-wbMNhhhoIqu3VuFAbuZESG+rJKM=
41 silly extract yencode@latest extracted to /usr/lib64/node_modules/.staging/yencode-b4c4bc6e (40ms)
42 timing action:extract Completed in 44ms
43 silly doReverseSerial unbuild 8
44 silly doSerial remove 8
45 silly doSerial move 8
46 silly doSerial finalize 8
47 silly finalize /usr/lib64/node_modules/yencode
48 timing action:finalize Completed in 3ms
49 silly doParallel refresh-package-json 1
50 silly refresh-package-json /usr/lib64/node_modules/yencode
51 timing action:refresh-package-json Completed in 10ms
52 silly doParallel preinstall 1
53 silly preinstall yencode@1.0.8
54 info lifecycle yencode@1.0.8~preinstall: yencode@1.0.8
55 timing action:preinstall Completed in 1ms
56 silly doSerial build 8
57 silly build yencode@1.0.8
58 info linkStuff yencode@1.0.8
59 silly linkStuff yencode@1.0.8 has /usr/lib64/node_modules as its parent node_modules
60 silly linkStuff yencode@1.0.8 is part of a global install
61 silly linkStuff yencode@1.0.8 is installed into a global node_modules
62 silly linkStuff yencode@1.0.8 is installed into the top-level global node_modules
63 timing action:build Completed in 1ms
64 silly doSerial global-link 8
65 silly doParallel update-linked 0
66 silly doSerial install 8
67 silly install yencode@1.0.8
68 info lifecycle yencode@1.0.8~install: yencode@1.0.8
69 verbose lifecycle yencode@1.0.8~install: unsafe-perm in lifecycle false
70 verbose lifecycle yencode@1.0.8~install: PATH: /usr/lib64/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib64/node_modules/yencode/node_modules/.bin:/usr/lib64/node_modules/.bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/lib/llvm/6/bin
71 verbose lifecycle yencode@1.0.8~install: CWD: /usr/lib64/node_modules/yencode
72 silly lifecycle yencode@1.0.8~install: Args: [ '-c', 'node-gyp rebuild' ]
73 silly lifecycle yencode@1.0.8~install: Returned: code: 1  signal: null
74 info lifecycle yencode@1.0.8~install: Failed to exec install script
75 timing action:install Completed in 271ms
76 verbose unlock done using /root/.npm/_locks/staging-5416abac55ed2dd0.lock for /usr/lib64/node_modules/.staging
77 timing stage:rollbackFailedOptional Completed in 10ms
78 timing stage:runTopLevelLifecycles Completed in 514ms
79 verbose stack Error: yencode@1.0.8 install: `node-gyp rebuild`
79 verbose stack Exit status 1
79 verbose stack     at EventEmitter.<anonymous> (/usr/lib64/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
79 verbose stack     at emitTwo (events.js:126:13)
79 verbose stack     at EventEmitter.emit (events.js:214:7)
79 verbose stack     at ChildProcess.<anonymous> (/usr/lib64/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
79 verbose stack     at emitTwo (events.js:126:13)
79 verbose stack     at ChildProcess.emit (events.js:214:7)
79 verbose stack     at maybeClose (internal/child_process.js:915:16)
79 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
80 verbose pkgid yencode@1.0.8
81 verbose cwd /home/sarah/nyuu_source/Nyuu-master
82 verbose Linux 4.9.140-gentoo
83 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "yencode"
84 verbose node v8.12.0
85 verbose npm  v6.4.1
86 error code ELIFECYCLE
87 error errno 1
88 error yencode@1.0.8 install: `node-gyp rebuild`
88 error Exit status 1
89 error Failed at the yencode@1.0.8 install script.
89 error This is probably not a problem with npm. There is likely additional logging output above.
90 verbose exit [ 1, true ]



that doesnt work :-/
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1466
Location: KUUSANKOSKI, Finland

PostPosted: Mon Feb 18, 2019 1:05 pm    Post subject: Reply with quote

This probably doesn't solve anything, but I found this very alarming:
Quote:
*snip*:
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"


Do you have some specific reason to run node programs as root? If not, then don't.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Tue Feb 19, 2019 10:09 am    Post subject: Reply with quote

if i run this at user, user with su before or as root.
it comes allways the same error message.
what do i wrong?
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1466
Location: KUUSANKOSKI, Finland

PostPosted: Tue Feb 19, 2019 4:04 pm    Post subject: Reply with quote

Don't run the program as root?
It's bad practice to run a program as root which doesn't need to be run as root. Especiall with npm. I don't know how well the nodejs package repository is maintained but I certainly would not run it as root.

EDIT: fedeliallalinea has instructed you to run npm with sudo, so nevermind. I have no experience that much on nodejs.

The warning just caught my eye.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Wed Feb 20, 2019 8:19 am    Post subject: Reply with quote

ok, here i go again ....

Code:
Nyuu-master $ sudo npm install -g yencode
Passwort:

> yencode@1.0.8 install /usr/lib64/node_modules/yencode
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib64/node_modules/yencode/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib64/node_modules/yencode/.node-gyp'
gyp ERR! System Linux 4.9.140-gentoo
gyp ERR! command "/usr/bin/node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib64/node_modules/yencode
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yencode@1.0.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yencode@1.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-20T08_16_31_939Z-debug.log


Code:
Nyuu-master $ sudo cat /root/.npm/_logs/2019-02-20T08_16_31_939Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'yencode' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose npm-session 551a0625817d7eb9
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/yencode 16ms (from cache)
8 silly pacote tag manifest for yencode@latest fetched in 26ms
9 timing stage:loadCurrentTree Completed in 153ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule yencode@1.0.8 checking installable status
17 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
18 timing stage:loadIdealTree Completed in 8ms
19 silly currentTree lib64
20 silly idealTree lib64
20 silly idealTree └── yencode@1.0.8
21 silly install generateActionsToTake
22 timing stage:generateActionsToTake Completed in 3ms
23 silly diffTrees action count 1
24 silly diffTrees add yencode@1.0.8
25 silly decomposeActions action count 8
26 silly decomposeActions fetch yencode@1.0.8
27 silly decomposeActions extract yencode@1.0.8
28 silly decomposeActions preinstall yencode@1.0.8
29 silly decomposeActions build yencode@1.0.8
30 silly decomposeActions install yencode@1.0.8
31 silly decomposeActions postinstall yencode@1.0.8
32 silly decomposeActions finalize yencode@1.0.8
33 silly decomposeActions refresh-package-json yencode@1.0.8
34 silly install executeActions
35 silly doSerial global-install 8
36 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
37 verbose lock using /root/.npm/_locks/staging-5416abac55ed2dd0.lock for /usr/lib64/node_modules/.staging
38 silly doParallel extract 1
39 silly extract yencode@1.0.8
40 silly tarball trying yencode@latest by hash: sha1-wbMNhhhoIqu3VuFAbuZESG+rJKM=
41 silly extract yencode@latest extracted to /usr/lib64/node_modules/.staging/yencode-b4c4bc6e (37ms)
42 timing action:extract Completed in 42ms
43 silly doReverseSerial unbuild 8
44 silly doSerial remove 8
45 silly doSerial move 8
46 silly doSerial finalize 8
47 silly finalize /usr/lib64/node_modules/yencode
48 timing action:finalize Completed in 4ms
49 silly doParallel refresh-package-json 1
50 silly refresh-package-json /usr/lib64/node_modules/yencode
51 timing action:refresh-package-json Completed in 10ms
52 silly doParallel preinstall 1
53 silly preinstall yencode@1.0.8
54 info lifecycle yencode@1.0.8~preinstall: yencode@1.0.8
55 timing action:preinstall Completed in 1ms
56 silly doSerial build 8
57 silly build yencode@1.0.8
58 info linkStuff yencode@1.0.8
59 silly linkStuff yencode@1.0.8 has /usr/lib64/node_modules as its parent node_modules
60 silly linkStuff yencode@1.0.8 is part of a global install
61 silly linkStuff yencode@1.0.8 is installed into a global node_modules
62 silly linkStuff yencode@1.0.8 is installed into the top-level global node_modules
63 timing action:build Completed in 1ms
64 silly doSerial global-link 8
65 silly doParallel update-linked 0
66 silly doSerial install 8
67 silly install yencode@1.0.8
68 info lifecycle yencode@1.0.8~install: yencode@1.0.8
69 verbose lifecycle yencode@1.0.8~install: unsafe-perm in lifecycle false
70 verbose lifecycle yencode@1.0.8~install: PATH: /usr/lib64/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib64/node_modules/yencode/node_modules/.bin:/usr/lib64/node_modules/.bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/lib/llvm/6/bin
71 verbose lifecycle yencode@1.0.8~install: CWD: /usr/lib64/node_modules/yencode
72 silly lifecycle yencode@1.0.8~install: Args: [ '-c', 'node-gyp rebuild' ]
73 silly lifecycle yencode@1.0.8~install: Returned: code: 1  signal: null
74 info lifecycle yencode@1.0.8~install: Failed to exec install script
75 timing action:install Completed in 265ms
76 verbose unlock done using /root/.npm/_locks/staging-5416abac55ed2dd0.lock for /usr/lib64/node_modules/.staging
77 timing stage:rollbackFailedOptional Completed in 10ms
78 timing stage:runTopLevelLifecycles Completed in 505ms
79 verbose stack Error: yencode@1.0.8 install: `node-gyp rebuild`
79 verbose stack Exit status 1
79 verbose stack     at EventEmitter.<anonymous> (/usr/lib64/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
79 verbose stack     at emitTwo (events.js:126:13)
79 verbose stack     at EventEmitter.emit (events.js:214:7)
79 verbose stack     at ChildProcess.<anonymous> (/usr/lib64/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
79 verbose stack     at emitTwo (events.js:126:13)
79 verbose stack     at ChildProcess.emit (events.js:214:7)
79 verbose stack     at maybeClose (internal/child_process.js:915:16)
79 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
80 verbose pkgid yencode@1.0.8
81 verbose cwd /home/sarah/nyuu_source/Nyuu-master
82 verbose Linux 4.9.140-gentoo
83 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "yencode"
84 verbose node v8.12.0
85 verbose npm  v6.4.1
86 error code ELIFECYCLE
87 error errno 1
88 error yencode@1.0.8 install: `node-gyp rebuild`
88 error Exit status 1
89 error Failed at the yencode@1.0.8 install script.
89 error This is probably not a problem with npm. There is likely additional logging output above.


what make i wrong ?!?!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21335
Location: here

PostPosted: Wed Feb 20, 2019 8:48 am    Post subject: Reply with quote

Zucca wrote:
Don't run the program as root?
It's bad practice to run a program as root which doesn't need to be run as root. Especiall with npm. I don't know how well the nodejs package repository is maintained but I certainly would not run it as root.

Your suggestion is not wrong.

Zucca wrote:
EDIT: fedeliallalinea has instructed you to run npm with sudo, so nevermind. I have no experience that much on nodejs.

That doesn't mean it's correct

@SarahS93: another way is download bin package and put nyuu in /opt/bin
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 455

PostPosted: Wed Feb 20, 2019 9:05 am    Post subject: Reply with quote

i tried the binar package, but i have a posting problems.
i can post files only with 700...1000 kb/s (1 connection), i am on a very fast 500/500 mbit connection.
i tried diferent usenet providers, all the time the same problem.
speed is round about 1 mb/s - never more
i tried newspost too, the same problem too, slow upload
so i will try to build nyuu from source, hope it will run better
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21335
Location: here

PostPosted: Wed Feb 20, 2019 10:39 am    Post subject: Reply with quote

I don't know program but this seems not a problem related to use binary vs self compiled
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum