carrot / roots-browserify

Roots v3 extension that uses browserify as a javascript pipeline
Other
21 stars 8 forks source link

parse error on install #1

Closed pruett closed 10 years ago

pruett commented 10 years ago

receiving the following error when running npm install roots-browserify --save

ERR! registry error parsing json
info retry will retry, error on last attempt: SyntaxError: Unexpected token <

and procedes to install v 0.0.1 of the module, but was that ever a version (https://github.com/carrot/roots-browserify/commit/2e7f65b928265994f5f913be3ae0a1d0496a9afb) ?

here is the output of ./node_modules/roots-browserify/package.json

{
  "name": "roots-browserify",
  "version": "0.0.1",
  "description": "browserify plugin for roots v3",
  "main": "index.js",
  "keywords": [
    "roots-plugin",
    "browserify"
  ],
  "scripts": {
    "test": "mocha"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/jenius/roots-browserify.git"
  },
  "dependencies": {
    "browserify": "3.x.x"
  },
  "devDependencies": {
    "mocha": "*",
    "should": "*",
    "roots": "3.x.x",
    "rimraf": "2.x.x"
  },
  "author": {
    "name": "Jeff Escalante",
    "email": "hello@jenius.me"
  },
  "license": "MIT",
  "readme": "# roots-browserify [![npm](https://badge.fury.io/js/roots-browserify.png)](http://badge.fury.io/js/roots-browserify) [![tests](https://travis-ci.org/jenius/roots-browserify.png?branch=master)](https://travis-ci.org/jenius/roots-browserify) [![dependencies](https://david-dm.org/jenius/roots-browserify.png)](https://david-dm.org/jenius/roots-browserify)\n\nbrowserify plugin for roots\n\n> **Note:** This project is in early development, and versioning is a little different. [Read this](http://markup.im/#q4_cRZ1Q) for more details.\n\n### Installation\n\nIn your roots project, `npm install roots-browserify --save`\n\n### Usage\n\nIntended for use in the \"after\" hook. Execute the function with an object with `in` and `out` keys pointing to the input and output paths. For example:\n\n```coffee\nbrowserify = require('roots-browserify')\n\nafter: browserify(in: 'js/main.js', out: 'js/dist.js')\n```\n\nThis would parse the `js/main.js` file's require tree and output everything as `js/dist.js`. Since this runs after compile, even if your main file is coffee, it can run on the js version.\n\n### License & Contributing\n\n- Details on the license [can be found here](LICENSE.md)\n- Details on running tests and contributing [can be found here](contributing.md)\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/jenius/roots-browserify/issues"
  },
  "homepage": "https://github.com/jenius/roots-browserify",
  "_id": "roots-browserify@0.0.1",
  "_from": "roots-browserify@"
}
jescalan commented 10 years ago

Unable to reproduce this. Are you on the latest node version?

pruett commented 10 years ago

Yeah, I think it's isolated on my machine, thanks for verifying

pruett commented 10 years ago

npm v1.4.6 node v0.10.26

pruett commented 10 years ago

just got install with no error messages, but still installing v0.0.1, what does your package.json look like?

jescalan commented 10 years ago

Yeah 0.0.1 is the correct version thats on npm: http://registry.npmjs.org/roots-browserify

It's certainly possible that a new version needs to be published though. Like I said before this isn't really ready for mainstream use, it needs some more polish first

pruett commented 10 years ago

gotcha, i'll close this out since the parse error was isolated