arboleya / coffee-toaster

Minimalist build system for CoffeeScript.
114 stars 23 forks source link

npm install issue #23

Closed cif closed 12 years ago

cif commented 12 years ago

coffee-toaster is now a dependency in the framework I've been writing this weekend (https://github.com/cif/bangup-js) Seems like there is a problem with the npm install ?

npm ERR! SyntaxError: Unexpected token } npm ERR! at Object.parse (native) npm ERR! at Packer.readRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:185:33)

Let me know if you're experiencing anything similar on your end, thanks!

arboleya commented 12 years ago

It's an error in your package.json file.

There's a comma missing after the stylu's dependence declaration, the dependence bellow ("handlebar-rider") is even highlighted in red. https://github.com/cif/bangup-js/blob/master/package.json

This:

"stylus"      : ">= 0.20.0",

Instead of this:

"stylus"      : ">= 0.20.0"

Fix it and everything should work.

cif commented 12 years ago

That was just bad push on my part. I've been making a lot of changes today. I fixed that as well as a few other problems on my end, but still getting npm error - looks to be something about packing? Strange...

npm ERR! addLocalDirectory Could not pack "/var/folders/3l/3llShSCOH9SK6qDE+xMiy++++TI/-Tmp-/npm-1340000592398/1340000596122-0.9996512574143708/package" to "/Users/benipsen/.npm/coffee-toaster/0.6.0/package.tgz" npm ERR! TypeError: Cannot call method 'filter' of undefined npm ERR! at Packer.addIgnoreRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:148:13)

arboleya commented 12 years ago

Hi, you're right, there's something wrong, I'm looking into this.

In this meantime, maybe you like this another project, I started toaster to make this possible. https://github.com/serpentem/theoricus

I'll let you know when I found what is happening with toaster.

arboleya commented 12 years ago

Hi, I fixed it, update to 0.6.1 and everything should work.