rxaviers / cldr-data-npm

Npm module for Unicode CLDR JSON data
MIT License
42 stars 28 forks source link

Error: ENOENT, no such file or directory 'c:\tmp\file.zip' #4

Closed geirsagberg closed 10 years ago

geirsagberg commented 10 years ago

One of my dependencies (not sure which one) uses cldr-data, which fails. More specifically, npm install fails with the following error message:

Error: ENOENT, no such file or directory 'c:\tmp\file.zip'
    at Object.fs.openSync (fs.js:438:18)
    at Object.fs.writeFileSync (fs.js:977:15)
    at Request._callback (c:\Projects\ETFViz\node_modules\cldr-data\node_modules\cldr-data-downloader\lib\download.js:78:19)
    at Request.self.callback (c:\Projects\ETFViz\node_modules\cldr-data\node_modules\cldr-data-downloader\node_modules\request\request.js:23
7:22)
    at Request.emit (events.js:98:17)
    at Request.<anonymous> (c:\Projects\ETFViz\node_modules\cldr-data\node_modules\cldr-data-downloader\node_modules\request\request.js:1146
:14)
    at Request.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (c:\Projects\ETFViz\node_modules\cldr-data\node_modules\cldr-data-downloader\node_modules\request\request
.js:1097:12)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:943:16

> ws@0.4.32 install c:\Projects\ETFViz\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

c:\Projects\ETFViz\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws>node "c:\Program Files\nodejs\nod
e_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild

npm ERR! cldr-data@26.0.1 install: `node install.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the cldr-data@26.0.1 install script.
npm ERR! This is most likely a problem with the cldr-data package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls cldr-data
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "update" "--save"
npm ERR! cwd c:\Projects\ETFViz
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE

Any idea what this could be due to?

geirsagberg commented 10 years ago

Fixed it by manually adding the directory C:\tmp. The install shouldn't depend on that directory existing though.

rxaviers commented 10 years ago

Hi @geirsagberg, thanks for filing this issue. It was a debug leftover of rxaviers/cldr-data-downloader, fixed by 6641018 and published. So, you should not run through the same issue again if you remove this tmp directory. Thanks