erithmetic / nodeify

Bring the power of CommonJS, npm, and command-line testing to your Rails JavaScript
MIT License
45 stars 4 forks source link

Could not find "package.json" in any of your source paths. #4

Open the-swerve opened 10 years ago

the-swerve commented 10 years ago

A bit at a loss about this one. When I run

rails g nodeify:install

It tells me:

Could not find "package.json" in any of your source paths. Your current source paths are: 
/home/big/j/.rvm/gems/ruby-1.9.3-p448/gems/nodeify-0.0.7/lib/generators/nodeify/templates

package.json is definitely there:

$ ls /home/big/j/.rvm/gems/ruby-1.9.3-p448/gems/nodeify-0.0.7/lib/generators/nodeify/templates
> package.json
the-swerve commented 10 years ago

(I'm on Debian and permissions on that file are all good).

the-swerve commented 10 years ago

Also, the template package.json has an extra comma that causes npm to fail on line 5:

{
  "name": "naive",
  "devDependencies": {
    "browserify": "*",
    "dkastner-http-browserify": "*",
  },  
 "engine": "*" 
}