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

Errors renaming package.json [Windows 7 x64 | Node 0.10.28 | sinopia 0.8.1] #81

Closed
MattAtBT opened this issue May 27, 2014 · 2 comments
Closed
Labels

Comments

@MattAtBT
Copy link

Running npm install against a local sinopia server works fine on OSX, but on Win 7, sinopia seems to have trouble. Failures aren't happening consistently on one module, but rather randomly on a variety of modules. It seems like modules download from npmjs.org successfully, but something happens after that. Here is an example of the error/stack trace:

 http  --> 200, req: 'GET http://registry.npmjs.org/node-sass/-/node-sass-0.8.6.
tgz', bytes: 0/1795011
 http  <-- 200, user: admin, req: 'GET /node-sass/-/node-sass-0.8.6.tgz', bytes:
 0/1795011
 error --- unexpected error: EPERM, rename 'C:\sinopia\storage\node-sass\package
.json'
Error: EPERM, rename 'C:\sinopia\storage\node-sass\package.json'
 fatal --- uncaught exception, please report this
TypeError: Cannot call method 'destroy' of null
    at ServerResponse.res.send (C:\Users\matt\AppData\Roaming\npm\node_modu
les\sinopia\lib\middleware.js:153:23)
    at ServerResponse.res.report_error (C:\Users\matt\AppData\Roaming\npm\n
ode_modules\sinopia\lib\index.js:77:10)
    at ReadTarball.<anonymous> (C:\Users\matt\AppData\Roaming\npm\node_modu
les\sinopia\lib\index.js:166:15)
    at ReadTarball.EventEmitter.emit (events.js:117:20)
    at UploadTarball.<anonymous> (C:\Users\matt\AppData\Roaming\npm\node_mo
dules\sinopia\lib\storage.js:255:11)
    at UploadTarball.EventEmitter.emit (events.js:117:20)
    at C:\Users\matt\AppData\Roaming\npm\node_modules\sinopia\lib\local-sto
rage.js:356:12
    at C:\Users\matt\AppData\Roaming\npm\node_modules\sinopia\lib\local-sto
rage.js:456:16
    at Object.oncomplete (fs.js:107:15)
@gpempro
Copy link

gpempro commented Jul 11, 2014

Same problem as #67. Fix: #67 (comment)

@rlidwka rlidwka added the windows label Aug 2, 2014
@rlidwka
Copy link
Owner

rlidwka commented Nov 1, 2014

fixed in sinopia@0.13.2, see #67 (comment) for details

@rlidwka rlidwka closed this as completed Nov 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants