Skip to content

Loading…

npm error EEXIST while trying to publish a package from a tar.gz archive #5336

Closed
lovasoa opened this Issue · 2 comments

4 participants

@lovasoa

I am trying to publish a package, and I get:

olojkine@ophir-ubuntu:~$ npm publish  Développement/sql.js/module.tar.gz 
npm ERR! EEXIST, mkdir '/home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package'
File exists: /home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package
Move it away, and try again. 

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "node" "/usr/local/bin/npm" "publish" "Développement/sql.js/module.tar.gz"
npm ERR! cwd /home/olojkine
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.7
npm ERR! path /home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package
npm ERR! fstream_path /home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package/sql.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/olojkine/npm-debug.log
npm ERR! not ok code 0

Of course, I tried to delete the faulty directory, but npm re-creates it, and still throws the error.

And here is npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'publish',
1 verbose cli   'Développement/sql.js/module.tar.gz' ]
2 info using npm@1.4.7
3 info using node@v0.10.25
4 verbose node symlink /usr/bin/node
5 verbose publish [ 'Développement/sql.js/module.tar.gz' ]
6 verbose cache add [ 'Développement/sql.js/module.tar.gz', null ]
7 verbose cache add name=undefined spec="Développement/sql.js/module.tar.gz" args=["Développement/sql.js/module.tar.gz",null]
8 verbose parsed url { protocol: null,
8 verbose parsed url   slashes: null,
8 verbose parsed url   auth: null,
8 verbose parsed url   host: null,
8 verbose parsed url   port: null,
8 verbose parsed url   hostname: null,
8 verbose parsed url   hash: null,
8 verbose parsed url   search: null,
8 verbose parsed url   query: null,
8 verbose parsed url   pathname: 'Développement/sql.js/module.tar.gz',
8 verbose parsed url   path: 'Développement/sql.js/module.tar.gz',
8 verbose parsed url   href: 'Développement/sql.js/module.tar.gz' }
9 silly lockFile 909f50ea-veloppement-sql-js-module-tar-gz Développement/sql.js/module.tar.gz
10 verbose lock Développement/sql.js/module.tar.gz /home/olojkine/.npm/909f50ea-veloppement-sql-js-module-tar-gz.lock
11 verbose chmod /home/olojkine/tmp/npm-6477-dw2zmObp/1400943768090-0.513898657169193/tmp.tgz 644
12 verbose tar unpack /home/olojkine/tmp/npm-6477-dw2zmObp/1400943768090-0.513898657169193/tmp.tgz
13 silly lockFile 31a4c100-4206926a3tmp-f4638825b681package tar:///home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package
14 verbose lock tar:///home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package /home/olojkine/.npm/31a4c100-4206926a3tmp-f4638825b681package.lock
15 silly lockFile 41c6d37b-768090-0-513898657169193-tmp-tgz tar:///home/olojkine/tmp/npm-6477-dw2zmObp/1400943768090-0.513898657169193/tmp.tgz
16 verbose lock tar:///home/olojkine/tmp/npm-6477-dw2zmObp/1400943768090-0.513898657169193/tmp.tgz /home/olojkine/.npm/41c6d37b-768090-0-513898657169193-tmp-tgz.lock
17 silly gunzTarPerm modes [ '755', '644' ]
18 silly gunzTarPerm extractEntry
19 silly gunzTarPerm modified mode [ '', 509, 493 ]
20 silly gunzTarPerm extractEntry all.js
21 silly gunzTarPerm modified mode [ 'all.js', 436, 420 ]
22 silly gunzTarPerm extractEntry test_errors.js
23 silly gunzTarPerm modified mode [ 'test_errors.js', 436, 420 ]
24 silly gunzTarPerm extractEntry test.sqlite
25 silly gunzTarPerm modified mode [ 'test.sqlite', 436, 420 ]
26 silly gunzTarPerm extractEntry test_database.js
27 silly gunzTarPerm modified mode [ 'test_database.js', 436, 420 ]
28 silly gunzTarPerm extractEntry test_node_file.js
29 silly gunzTarPerm modified mode [ 'test_node_file.js', 436, 420 ]
30 silly gunzTarPerm extractEntry run.sh
31 silly gunzTarPerm modified mode [ 'run.sh', 509, 493 ]
32 silly gunzTarPerm extractEntry test_blob.js
33 silly gunzTarPerm modified mode [ 'test_blob.js', 436, 420 ]
34 silly gunzTarPerm extractEntry test_statement.js
35 silly gunzTarPerm modified mode [ 'test_statement.js', 436, 420 ]
36 silly gunzTarPerm extractEntry
37 silly gunzTarPerm modified mode [ '', 436, 420 ]
38 silly gunzTarPerm extractEntry
39 silly gunzTarPerm modified mode [ '', 436, 420 ]
40 silly gunzTarPerm extractEntry sql.js
41 silly gunzTarPerm modified mode [ 'sql.js', 436, 420 ]
42 error EEXIST, mkdir '/home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package'
File exists: /home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package
Move it away, and try again.
43 error System Linux 3.13.0-24-generic
44 error command "node" "/usr/local/bin/npm" "publish" "Développement/sql.js/module.tar.gz"
45 error cwd /home/olojkine
46 error node -v v0.10.25
47 error npm -v 1.4.7
48 error path /home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package
49 error fstream_path /home/olojkine/.npm/tmp_ecb4206926a3tmp_f4638825b681package/sql.js
50 error fstream_type File
51 error fstream_class FileWriter
52 error code EEXIST
53 error errno 47
54 error fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
54 error fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
54 error fstream_stack Object.oncomplete (fs.js:107:15)
55 verbose exit [ 47, true ]
@faiq faiq added the support label
@smikes

Is this still a problem for you?

There have been a lot of improvements to npm -- especially around conflicts and race conditions during install -- since 1.4.7. Can you try updating your npm installation?

To update npm, run npm -g install npm@latest

We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and re-open it!)

Thanks!

@lovasoa

I'm sorry, I'm using ubuntu, and prefer to stick to the version packaged in my distribution. You can close this issue, I'll reopen it if necessary when ubuntu updates npm.

@iarna iarna closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.