CleverStack / cleverstack-cli

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

Cannot init the project, ENOENT error, cannot find frontend/dist/modules/cs_messenger/main.js #43

Closed mers75 closed 9 years ago

mers75 commented 9 years ago

Following the introduction video, Im trying to create the application for the first time $clever init -v my-new-project Everything looks ok until the following error, which interrupts execution:

.... Running "requirejs:compile" (requirejs) task

Error: ENOENT, no such file or directory '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js' In module tree:m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 37s ┊
main

{ [Error: Error: ENOENT, no such file or directory '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js' In module tree: main

at Object.fs.openSync (fs.js:427:18)

] originalError: { [Error: ENOENT, no such file or directory '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js'] errno: 34, code: 'ENOENT', path: '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js', syscall: 'open', fileName: '/Volumes/DATA/73. PROGRAMACION/Cleverstack/prueba_cli/my-new-project/frontend/dist/modules/cs_messenger/main.js', moduleTree: [ 'main' ] } }

Execution Time (2014-09-23 21:00:48 UTC)

loading tasks 8.9s ▇▇▇▇▇▇▇▇▇ 26% jshint:all 2.7s ▇▇▇ 8%[▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 37s ┊ imagemin:dist 5.6s ▇▇▇▇▇▇ 17% less:css 581ms ▇ 2% cssmin:dist 641ms ▇ 2% cssmin:dist/styles/screen.css 517ms ▇ 2% copy:dist 10.9s ▇▇▇▇▇▇▇▇▇▇▇ 32% ngAnnotate:dist 638ms ▇ 2% requirejs:compile 2.9s ▇▇▇ 9% Total 33.8s Error: Command failed: Status @ 10.267m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 37s ┊

mers75 commented 9 years ago

Another screen capture a the bottom of the message The same command, with no verbose flag, for better understanding. $clever init my-new-project

The error is happening while building the frontend Thanks in advance for any indication you might have!


Installing Frontend... Installation path is /Volumes/DATA/73_PROG/Cleverstack/my-new-project/frontend... Downloading and extracting angular-seed... Installing NPM modules...
Installing bundled modules... Installing bower components... Progress: [▒▒▒▒▒-----] 50 % ┊ Installing: Frontend ┊ Step: Installing NPM modules... ┊ Step Time: 8.617m ┊

Building frontend...
Error: Command failed: Status @ 11.433m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 50s ┊

theocoria commented 9 years ago

@mers75 The command failed you see there is the clever build command that fails (it's part of the clever init operations). It fails because cs_messenger and cs_modal are wired up in the code, but the actual code isn't installed yet. So when you get the result as above, just install clever-messenger and clever-modal by using the clever install command and then run clever build again.

mers75 commented 9 years ago

Hi @theocoria, thanks a lot for the reply! I followed your indication and it moved forward until it stopped again, similar situation: { [Error: Error: ENOENT, no such file or directory '/Volumes/DATA/73_PROG/Cleverstack/my-new-project/frontend/dist/components/jquery/jquery.js' I guess the solution would be to keep installing whatever is missing until it finishes, right? No problem with that.

Two questions arise then 1/ The same way that clever-messenger turned out to be the so called cs_messenger... where can I find the relation between the package to install and the name in the error message? Dont know if I explain myself... 2/ Should I ignore the error messages like "Warning: Task "jshint:all" failed. Used --force, continuing." "Warning: Error compiling LESS. Used --force, continuing." or " ... line 113 col 13 Expected '}' to have an indentation at 15 instead at 13. line 114 col 9 Expected '}' to have an indentation at 11 instead at 9. line 114 col 10 Missing semicolon. line 77 col 25 'ctrl' is defined but never used.

✖ 26 problems " or should I address them now, in order to avoid later problems?

Thanks again for your support! BR

lokkju commented 9 years ago

I'm running into the same issues - any update?