maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
727 stars 58 forks source link

npm installation of older versions #72

Closed rnikitin closed 11 years ago

rnikitin commented 11 years ago

I'm not using coffee-script directly in my app, but it is used in modules, which I use (e.g. mimosa).

And last few days we are getting a lot of errors when trying to install mimosa because installation of older versions of iced-coffee-script is broken (we have an issue here https://github.com/dbashford/mimosa/issues/222).

This is what I have when I'm trying to install iced-coffee-script@1.6.2d and same for iced-coffee-script@1.6.2b

root@app-server1:/# npm install iced-coffee-script@1.6.2d
npm http GET https://registry.npmjs.org/iced-coffee-script/1.6.2-d
npm http 404 https://registry.npmjs.org/iced-coffee-script/1.6.2-d
npm ERR! Error: version not found: 1.6.2-d : iced-coffee-script/1.6.2-d
npm ERR!     at RegClient.<anonymous> (/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:272:14)
npm ERR!     at Request.self.callback (/local/lib/node_modules/npm/node_modules/request/index.js:148:22)
npm ERR!     at Request.EventEmitter.emit (events.js:98:17)
npm ERR!     at Request.<anonymous> (/local/lib/node_modules/npm/node_modules/request/index.js:876:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (/local/lib/node_modules/npm/node_modules/request/index.js:827:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:910:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.2.0-45-virtual
npm ERR! command "node" "/local/bin/npm" "install" "iced-coffee-script@1.6.2d"
npm ERR! cwd /
npm ERR! node -v v0.10.12
npm ERR! npm -v 1.3.1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /npm-debug.log
npm ERR! not ok code 0
maxtaco commented 11 years ago

Hmm, seems like a change in behavior of npm. v1.2.18 still does the correct thing, but your version of npm seems to be rewriting 1.6.2d as 1.6.2-d.

rnikitin commented 11 years ago

@dbashford have updated the mimosa to use iced-coffee-script@1.6.3a, but I'm still getting the issue.

npm ERR! Error: version not found: 1.6.3-a : iced-coffee-script/1.6.3-a
npm ERR!     at RegClient.<anonymous> (/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:272:14)
npm ERR!     at Request.self.callback (/local/lib/node_modules/npm/node_modules/request/index.js:148:22)
npm ERR!     at Request.EventEmitter.emit (events.js:98:17)
npm ERR!     at Request.<anonymous> (/local/lib/node_modules/npm/node_modules/request/index.js:876:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (/local/lib/node_modules/npm/node_modules/request/index.js:827:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:910:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.2.0-45-virtual
npm ERR! command "node" "/local/bin/npm" "install" "mimosa" "-g"
npm ERR! cwd /root
npm ERR! node -v v0.10.12
npm ERR! npm -v 1.3.1

Any ideas how to force npm to not rewrite the version of module?

rnikitin commented 11 years ago

I'm closing this issue because we have #73 with correct description and resolution instructions.