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

npm install -g git+https://github.com/lix-pm/lix.client.git fails #139

Closed
0b1kn00b opened this issue May 2, 2020 · 9 comments
Closed

Comments

@0b1kn00b
Copy link

0b1kn00b commented May 2, 2020

[email protected]

npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /home/dayz/npm-global/lib/node_modules/lix/bin/lix.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/dayz/npm-global/lib/node_modules/lix/bin/lix.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dayz/.npm/_logs/2020-05-02T08_12_26_812Z-debug.log

logfile:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/mnt/dat/home/npm-global/bin/npm',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   'git+https://github.com/lix-pm/lix.client.git' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 6ef708bf66c40f67
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 info lifecycle [email protected]~prepack: [email protected]
8 info lifecycle [email protected]~postpack: [email protected]
9 silly pacote git manifest for undefined@git+https://github.com/lix-pm/lix.client.git fetched in 6950ms
10 timing stage:loadCurrentTree Completed in 7160ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 11ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule [email protected] checking installable status
18 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
19 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 17ms
20 timing stage:loadIdealTree Completed in 35ms
21 silly currentTree lib
21 silly currentTree └── [email protected]
22 silly idealTree lib
22 silly idealTree └── [email protected]
23 silly install generateActionsToTake
24 timing stage:generateActionsToTake Completed in 27ms
25 silly diffTrees action count 1
26 silly diffTrees update [email protected]
27 silly decomposeActions action count 10
28 silly decomposeActions unbuild [email protected]
29 silly decomposeActions remove [email protected]
30 silly decomposeActions fetch [email protected]
31 silly decomposeActions extract [email protected]
32 silly decomposeActions preinstall [email protected]
33 silly decomposeActions build [email protected]
34 silly decomposeActions install [email protected]
35 silly decomposeActions postinstall [email protected]
36 silly decomposeActions finalize [email protected]
37 silly decomposeActions refresh-package-json [email protected]
38 silly install executeActions
39 silly doSerial global-install 10
40 verbose correctMkdir /home/dayz/.npm/_locks correctMkdir not in flight; initializing
41 verbose lock using /home/dayz/.npm/_locks/staging-fb97a0896b2a02b0.lock for /home/dayz/npm-global/lib/node_modules/.staging
42 silly doParallel extract 1
43 silly extract [email protected]
44 silly tarball no local data for git+https://github.com/lix-pm/lix.client.git. Extracting by manifest.
45 info lifecycle [email protected]~prepack: [email protected]
46 info lifecycle [email protected]~postpack: [email protected]
47 silly extract git+https://github.com/lix-pm/lix.client.git extracted to /home/dayz/npm-global/lib/node_modules/.staging/lix-46eca5bd (27758ms)
48 timing action:extract Completed in 27772ms
49 silly doReverseSerial unbuild 10
50 silly unbuild [email protected]
51 info lifecycle [email protected]~preuninstall: [email protected]
52 info lifecycle [email protected]~uninstall: [email protected]
53 verbose unbuild rmStuff [email protected] from /home/dayz/npm-global/lib/node_modules
54 silly isEverInside /home/dayz/npm-global/bin/lix is not inside /home/dayz/npm-global/lib/node_modules/lix
55 silly gentlyRm parent.path = /home/dayz/npm-global/lib/node_modules/lix
56 silly gentlyRm parent.managed = /home/dayz/npm-global/lib/node_modules/lix is in /home/dayz/npm-global/lib/node_modules
57 silly gentlyRm target.path =  /home/dayz/npm-global/bin/lix
58 silly gentlyRm target.symlink = ../lib/node_modules/lix/bin/lix.js
59 silly gentlyRm target.managed = /home/dayz/npm-global/bin/lix is in /home/dayz/npm-global
60 silly gentlyRm target.inParent =  { target: '/home/dayz/npm-global/lib/node_modules/lix/bin/lix.js',
60 silly gentlyRm   path: '/home/dayz/npm-global/lib/node_modules/lix' }
61 silly isEverInside /home/dayz/npm-global/bin/neko is not inside /home/dayz/npm-global/lib/node_modules/lix
62 silly gentlyRm parent.path = /home/dayz/npm-global/lib/node_modules/lix
63 silly gentlyRm parent.managed = /home/dayz/npm-global/lib/node_modules/lix is in /home/dayz/npm-global
64 silly gentlyRm target.path =  /home/dayz/npm-global/bin/neko
65 silly gentlyRm target.symlink = ../lib/node_modules/lix/bin/nekoshim.js
66 silly gentlyRm target.managed = /home/dayz/npm-global/bin/neko is in /home/dayz/npm-global
67 silly gentlyRm target.inParent =  { target: '/home/dayz/npm-global/lib/node_modules/lix/bin/nekoshim.js',
67 silly gentlyRm   path: '/home/dayz/npm-global/lib/node_modules/lix' }
68 silly isEverInside /home/dayz/npm-global/bin/haxelib is not inside /home/dayz/npm-global/lib/node_modules/lix
69 silly gentlyRm parent.path = /home/dayz/npm-global/lib/node_modules/lix
70 silly gentlyRm parent.managed = /home/dayz/npm-global/lib/node_modules/lix is in /home/dayz/npm-global
71 silly gentlyRm target.path =  /home/dayz/npm-global/bin/haxelib
72 silly gentlyRm target.symlink = ../lib/node_modules/lix/bin/haxelibshim.js
73 silly gentlyRm target.managed = /home/dayz/npm-global/bin/haxelib is in /home/dayz/npm-global
74 silly gentlyRm target.inParent =  { target:
74 silly gentlyRm    '/home/dayz/npm-global/lib/node_modules/lix/bin/haxelibshim.js',
74 silly gentlyRm   path: '/home/dayz/npm-global/lib/node_modules/lix' }
75 silly isEverInside /home/dayz/npm-global/bin/haxe is not inside /home/dayz/npm-global/lib/node_modules/lix
76 silly gentlyRm parent.path = /home/dayz/npm-global/lib/node_modules/lix
77 silly gentlyRm parent.managed = /home/dayz/npm-global/lib/node_modules/lix is in /home/dayz/npm-global
78 silly gentlyRm target.path =  /home/dayz/npm-global/bin/haxe
79 silly gentlyRm target.symlink = ../lib/node_modules/lix/bin/haxeshim.js
80 silly gentlyRm target.managed = /home/dayz/npm-global/bin/haxe is in /home/dayz/npm-global
81 silly gentlyRm target.inParent =  { target: '/home/dayz/npm-global/lib/node_modules/lix/bin/haxeshim.js',
81 silly gentlyRm   path: '/home/dayz/npm-global/lib/node_modules/lix' }
82 info lifecycle [email protected]~postuninstall: [email protected]
83 timing action:unbuild Completed in 184ms
84 silly doSerial remove 10
85 silly remove /home/dayz/npm-global/lib/node_modules/lix
86 timing action:remove Completed in 23ms
87 silly doSerial move 10
88 silly doSerial finalize 10
89 silly finalize /mnt/dat/home/npm-global/lib/node_modules/lix
90 timing action:finalize Completed in 8ms
91 silly doParallel refresh-package-json 1
92 silly refresh-package-json /mnt/dat/home/npm-global/lib/node_modules/lix
93 timing action:refresh-package-json Completed in 33ms
94 silly doParallel preinstall 1
95 silly preinstall [email protected]
96 info lifecycle [email protected]~preinstall: [email protected]
97 timing action:preinstall Completed in 1ms
98 silly doSerial build 10
99 silly build [email protected]
100 info linkStuff [email protected]
101 silly linkStuff [email protected] has /home/dayz/npm-global/lib/node_modules as its parent node_modules
102 silly linkStuff [email protected] is part of a global install
103 silly linkStuff [email protected] is installed into a global node_modules
104 silly linkStuff [email protected] is installed into the top-level global node_modules
105 verbose linkBins [ { lix: 'bin/lix.js',
105 verbose linkBins     haxe: 'bin/haxeshim.js',
105 verbose linkBins     haxelib: 'bin/haxelibshim.js',
105 verbose linkBins     neko: 'bin/nekoshim.js' },
105 verbose linkBins   '/home/dayz/npm-global/bin',
105 verbose linkBins   true ]
106 timing action:build Completed in 10ms
107 verbose unlock done using /home/dayz/.npm/_locks/staging-fb97a0896b2a02b0.lock for /home/dayz/npm-global/lib/node_modules/.staging
108 timing stage:rollbackFailedOptional Completed in 9ms
109 timing stage:runTopLevelLifecycles Completed in 35311ms
110 verbose stack Error: ENOENT: no such file or directory, chmod '/home/dayz/npm-global/lib/node_modules/lix/bin/lix.js'
111 verbose cwd /mnt/dat/prj/haxe/lix_issue
112 verbose Linux 5.3.0-42-generic
113 verbose argv "/usr/bin/node" "/mnt/dat/home/npm-global/bin/npm" "install" "-g" "git+https://github.com/lix-pm/lix.client.git"
114 verbose node v10.15.2
115 verbose npm  v6.14.4
116 error code ENOENT
117 error syscall chmod
118 error path /home/dayz/npm-global/lib/node_modules/lix/bin/lix.js
119 error errno -2
120 error enoent ENOENT: no such file or directory, chmod '/home/dayz/npm-global/lib/node_modules/lix/bin/lix.js'
121 error enoent This is related to npm not being able to find a file.
122 verbose exit [ -2, true ]
@back2dos
Copy link
Contributor

back2dos commented May 2, 2020

That's not expected to work. PRs are welcome though ;)

@back2dos back2dos closed this as completed May 2, 2020
@kevinresol
Copy link
Member

I think this is because installing from git doesn't include the built js files produced by Build.hx

@0b1kn00b
Copy link
Author

0b1kn00b commented May 2, 2020

I'm looking into something else, as per your request, and putting time into it. So, it works on my machine is a dead end, as far as that goes.

@kevinresol
Copy link
Member

what is your goal here?

@0b1kn00b
Copy link
Author

0b1kn00b commented May 2, 2020

in an effort to do haxetink/tink_http#121, I needed https://github.com/lix-pm/lix.client which broke #138 and in looking into it, I found #139

@kevinresol
Copy link
Member

git head is at 15.9.0 which is published to npm anyway. What is the goal achieved by running npm install -g git+https://github.com/lix-pm/lix.client.git?

@0b1kn00b
Copy link
Author

0b1kn00b commented May 2, 2020

npm install -g git+https://github.com/0b1kn00b/lix.client.git? so I can tinker on it locally. I'm on a metered connection and docker is gonna kill it stone dead.

@kevinresol
Copy link
Member

You need to use the standard way for developing npm packages. I use yarn and yarn link. Not sure how npm does the same thing.

@0b1kn00b
Copy link
Author

0b1kn00b commented May 2, 2020

Anyway, the pull request is pretty readable now, and passing, so I don't need personally to have lix installed. So I can uninstall it, and maybe someone else will tackle it.

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

3 participants