Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Error deploying npm modules due to missing package.json file in that particular path #19011

Open
Sri-nidhi opened this issue Oct 31, 2017 · 0 comments
Labels

Comments

@Sri-nidhi
Copy link

Sri-nidhi commented Oct 31, 2017

I tried to build HDI DB module in SAP HANA WEBIDE which throws an npm related error
It suggested me to update my npm and node
and now the version is
node 6.11.1
npm 3.10.10

Output for npm bugs:
npm ERR! addLocal Could not install /hana1/shared/ANA/xs/app_working/afcrmhananp /executionroot/ad96583b-50b5-4188-a74a-6ec70ed99719/app/META-INF/resources/nodej s/vendor/node6.11/bin
npm ERR! Linux 3.10.0-327.28.3.el7.x86_64
npm ERR! argv "/hana1/shared/ANA/xs/app_working/afcrmhananp/executionroot/ad9658 3b-50b5-4188-a74a-6ec70ed99719/app/META-INF/resources/nodejs/vendor/node6.11/bin /node" "/hana1/shared/ANA/xs/app_working/afcrmhananp/executionroot/ad96583b-50b5 -4188-a74a-6ec70ed99719/app/META-INF/resources/nodejs/vendor/node6.11/lib/node_m odules/npm/bin/npm-cli.js" "bugs"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -21
npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

Contents of npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/hana1/shared/ANA/xs/app_working/afcrmhananp/executionroot/ad96583b-50b5-4188-a74a-6ec70ed99719/app/META-INF/resources/nodejs/vendor/node6.11/bin/node',
1 verbose cli '/hana1/shared/ANA/xs/app_working/afcrmhananp/executionroot/ad96583b-50b5-4188-a74a-6ec70ed99719/app/META-INF/resources/nodejs/vendor/node6.11/lib/node_modules/npm/bin/npm-cli.js',
1 verbose cli 'bugs',
1 verbose cli 'deploy' ]
2 info using npm@3.10.10
3 info using node@v6.11.1
4 silly fetchPackageMetaData deploy
5 silly fetchNamedPackageData deploy
6 silly mapToRegistry name deploy
7 silly mapToRegistry using default registry
8 silly mapToRegistry registry https://registry.npmjs.org/
9 silly mapToRegistry data Result {
9 silly mapToRegistry raw: 'deploy',
9 silly mapToRegistry scope: null,
9 silly mapToRegistry escapedName: 'deploy',
9 silly mapToRegistry name: 'deploy',
9 silly mapToRegistry rawSpec: '',
9 silly mapToRegistry spec: 'latest',
9 silly mapToRegistry type: 'tag' }
10 silly mapToRegistry uri https://registry.npmjs.org/deploy
11 verbose request uri https://registry.npmjs.org/deploy
12 verbose request no auth needed
13 info attempt registry request try #1 at 5:55:37 AM
14 verbose request id bf07943ce4756512
15 http request GET https://registry.npmjs.org/deploy
16 http 200 https://registry.npmjs.org/deploy
17 verbose headers { server: 'nginx/1.10.1',
17 verbose headers 'content-type': 'application/json',
17 verbose headers 'last-modified': 'Mon, 17 Jul 2017 18:08:22 GMT',
17 verbose headers etag: 'W/"596cfd16-fa8"',
17 verbose headers 'content-encoding': 'gzip',
17 verbose headers 'cache-control': 'max-age=300',
17 verbose headers 'content-length': '1181',
17 verbose headers 'accept-ranges': 'bytes',
17 verbose headers date: 'Tue, 31 Oct 2017 02:55:37 GMT',
17 verbose headers via: '1.1 varnish',
17 verbose headers age: '0',
17 verbose headers connection: 'keep-alive',
17 verbose headers 'x-served-by': 'cache-fjr7921-FJR',
17 verbose headers 'x-cache': 'MISS',
17 verbose headers 'x-cache-hits': '0',
17 verbose headers 'x-timer': 'S1509418538.691801,VS0,VE124',
17 verbose headers vary: 'Accept-Encoding, Accept' }
18 silly get cb [ 200,
18 silly get { server: 'nginx/1.10.1',
18 silly get 'content-type': 'application/json',
18 silly get 'last-modified': 'Mon, 17 Jul 2017 18:08:22 GMT',
18 silly get etag: 'W/"596cfd16-fa8"',
18 silly get 'content-encoding': 'gzip',
18 silly get 'cache-control': 'max-age=300',
18 silly get 'content-length': '1181',
18 silly get 'accept-ranges': 'bytes',
18 silly get date: 'Tue, 31 Oct 2017 02:55:37 GMT',
18 silly get via: '1.1 varnish',
18 silly get age: '0',
18 silly get connection: 'keep-alive',
18 silly get 'x-served-by': 'cache-fjr7921-FJR',
18 silly get 'x-cache': 'MISS',
18 silly get 'x-cache-hits': '0',
18 silly get 'x-timer': 'S1509418538.691801,VS0,VE124',
18 silly get vary: 'Accept-Encoding, Accept' } ]
19 verbose get saving deploy to /usr/sap/ANA/home/.npm/registry.npmjs.org/deploy/.cache.json
20 verbose correctMkdir /usr/sap/ANA/home/.npm correctMkdir not in flight; initializing
21 silly bugs url https://github.com/dominictarr/deploy/issues
22 verbose stack Error: Command failed: xdg-open https://github.com/dominictarr/deploy/issues
22 verbose stack Error: no display specified
22 verbose stack xdg-open: no method available for opening 'https://github.com/dominictarr/deploy/issues'
22 verbose stack
22 verbose stack at ChildProcess.exithandler (child_process.js:204:12)
22 verbose stack at emitTwo (events.js:106:13)
22 verbose stack at ChildProcess.emit (events.js:191:7)
22 verbose stack at maybeClose (internal/child_process.js:891:16)
22 verbose stack at Socket. (internal/child_process.js:342:11)
22 verbose stack at emitOne (events.js:96:13)
22 verbose stack at Socket.emit (events.js:188:7)
22 verbose stack at Pipe._handle.close [as _onclose] (net.js:497:12)
23 verbose cwd /hana1/shared/ANA/xs/app_working/afcrmhananp/executionroot/ad96583b-50b5-4188-a74a-6ec70ed99719/app/META-INF/resources/nodejs/vendor/node6.11/bin
24 error Linux 3.10.0-327.28.3.el7.x86_64
25 error argv "/hana1/shared/ANA/xs/app_working/afcrmhananp/executionroot/ad96583b-50b5-4188-a74a-6ec70ed99719/app/META-INF/resources/nodejs/vendor/node6.11/bin/node" "/hana1/shared/ANA/xs/app_working/afcrmhananp/executionroot/ad96583b-50b5-4188-a74a-6ec70ed99719/app/META-INF/resources/nodejs/vendor/node6.11/lib/node_modules/npm/bin/npm-cli.js" "bugs" "deploy"
26 error node v6.11.1
27 error npm v3.10.10
28 error code 3
29 error Command failed: xdg-open https://github.com/dominictarr/deploy/issues
29 error Error: no display specified
29 error xdg-open: no method available for opening 'https://github.com/dominictarr/deploy/issues'
30 error If you need help, you may report this error at:
30 error https://github.com/npm/npm/issues
31 verbose exit [ 1, true ]

@Sri-nidhi Sri-nidhi changed the title Error deploying npm modules at the target Error deploying npm modules due to missing package.json file in that particular path Oct 31, 2017
@kenany kenany added the support label Oct 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants