lefos987 / generator-ghurt

MIT License
23 stars 1 forks source link

npm warning when running hapi subgenerator #15

Open pdehaan opened 10 years ago

pdehaan commented 10 years ago

I'm getting the following warning when creating a new project using the hapi subgenerator: $ yo ghurt:hapi

bower                           ENOENT No bower.json present

Here's the full output (minus npm listings at the end):

$ yo ghurt:hapi

     _-----_
    |       |
    |--(o)--|   .--------------------------.
   `---------´  |    Welcome to Yeoman,    |
    ( _´U`_ )   |   ladies and gentlemen!  |
    /___A___\   '__________________________'
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

We need some information about your app to automagically create it...
[?] What is the name of your application? hey-bro
[?] Can you give us a brief description? nope
[?] What version is it on? 0.0.1
[?] Who is the author? Peter
[?] What is the home URL of the GIT repo?
[?] Under which license is it created? BSD
[?] Which port do you want your server to run on? 8001
[?] Do you want a quick install? Yes
   create package.json
   create .jshintrc
   create gruntFile.js
   create .gitignore
   create config.js
   create server.js
   create src/api/index/indexRoutes.js
   create src/api/util/logger.js
   create src/error_messages/en_GB.json
   invoke   ghurt:hapi-util
   create     src/api/demo/getDemoCollection/getDemoCollection.js
   create     test/api/demo/getDemoCollection/getDemoCollection.spec.js
   create     src/api/demo/demoRoutes.js
    force     server.js
   invoke   ghurt:hapi-util
   create     src/api/demo/getDemoElement/getDemoElement.js
   create     test/api/demo/getDemoElement/getDemoElement.spec.js
    force     src/api/demo/demoRoutes.js

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.

npm WARN package.json hey-bro@0.0.1 No README data
bower                           ENOENT No bower.json present

And here is the generated directory structure (again, minus node_modules directory):

$ tree
.
├── config.js
├── gruntFile.js
├── package.json
├── server.js
├── src
│   ├── api
│   │   ├── demo
│   │   │   ├── demoRoutes.js
│   │   │   ├── getDemoCollection
│   │   │   │   └── getDemoCollection.js
│   │   │   └── getDemoElement
│   │   │       └── getDemoElement.js
│   │   ├── index
│   │   │   └── indexRoutes.js
│   │   └── util
│   │       └── logger.js
│   └── error_messages
│       └── en_GB.json
└── test
    └── api
        └── demo
            ├── getDemoCollection
            │   └── getDemoCollection.spec.js
            └── getDemoElement
                └── getDemoElement.spec.js

13 directories, 12 files
maxwellito commented 10 years ago

Ok, it seems to run bower. Which doesn't make any sense because we don't use it on Hapi apps. Only on Angular. I have to investigate why. Does it run 'npm install'? You don't seems to have the 'node_module' folder in your repo structure.

pdehaan commented 10 years ago

@maxwellito Yeah, it ran npm install. I just manually deleted the node_modules directory since it make my file tree easier to read.