CleverStack / cleverstack-cli

CLI for CleverStack
http://youtube.com/watch?v=-4ArURHExhQ
MIT License
196 stars 33 forks source link

clever init not working #35

Closed meeDamian closed 10 years ago

meeDamian commented 10 years ago

Seems like it's not a dup of #34 (but I'm not 100% sure...).

Anytime I do

$ clever init -v my-app

I get this error:

Error: ENOENT, no such file or directory '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js'   ┊                                                                                                
In module tree:|   Installation Progress: [▒▒▒▒▒▒▒---]  71 %   ┊   Installing: Frontend   ┊   Step: Building...   ┊   Step Time: 6s   ┊                                                                                                
    main

{ [Error: Error: ENOENT, no such file or directory '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js'
In module tree:
    main

    at Object.fs.openSync (fs.js:432:18)
]
  originalError: 
   { [Error: ENOENT, no such file or directory '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js']
     errno: 34,
     code: 'ENOENT',
     path: '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js',
     syscall: 'open',
     fileName: '/home/mee/projects/my-app/frontend/dist/components/jquery/dist/jquery.js',
     moduleTree: [ 'main' ] } }

Execution Time (2014-07-09 22:31:20 UTC)
loading tasks       2.7s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 50%
less:development   132ms  ▇▇ 2%
less:production     68ms  ▇ 1%
cssmin:dist         68ms  ▇ 1%
htmlmin:dist       110ms  ▇ 2%
copy:dist           1.1s  ▇▇▇▇▇▇▇▇▇ 20%
ngmin:dist         787ms  ▇▇▇▇▇▇▇ 14%
requirejs:compile  366ms  ▇▇▇ 7%
Error: Command failed: 
Status @ 106s |   Installation Progress: [▒▒▒▒▒▒▒---]  71 %   ┊   Installing: Frontend   ┊   Step: Building...   ┊   Step Time: 6s   ┊

when I $ tree -L 1 /home/mee/projects/my-app/frontend/dist/components/jquery I get:

/home/mee/projects/my-app/frontend/dist/components/jquery
├── build
├── Gruntfile.js
├── jquery.js
├── jquery-migrate.js
├── jquery-migrate.min.js
├── jquery.min.js
├── speed
├── src
└── test

4 directories, 5 files

where there is no /dist directory indeed. I really want to start already, what do I do? :)

Additional stuff:

$ npm --version
1.4.14

$ node --version
v0.10.29

$ clever --version
1.0.7
craigbeck commented 10 years ago

related to CleverStack/angular-seed#75

meeDamian commented 10 years ago

Indeed. Any idea for a quick fix I can do to have project running?

craigbeck commented 10 years ago

you can hack around it by editing app/modules/main.js and removing the dist from the jquery path:

https://github.com/CleverStack/angular-seed/pull/76

meeDamian commented 10 years ago

Any way to resume clever init or edit somewhere to replace angular-seed sources for init process?

craigbeck commented 10 years ago

I just ran clever init then after it failed, made my change and ran clever build

meeDamian commented 10 years ago

Yes, it finished fine now :). As we can see here after building, there's also protractor(whatever that is) instalation, just do:

$ cd project/frontend && npm run-script setup-protractor
craigbeck commented 10 years ago

cool I didn't look at what else would have been missed. Good to know.

pilsy commented 10 years ago

Interestingly enough this jquery keeps changing, depending on the day or machine i am on (even if i delete and reinstall that module using bower i directly).

I found an issue http://bugs.jquery.com/ticket/14797 and https://github.com/bower/bower/issues/120#issuecomment-34900208

craigbeck commented 10 years ago

oh yay. :-/