angular / angular-seed

Seed project for angular apps.
http://angularjs.org/
MIT License
13.03k stars 6.93k forks source link

Npm install and npm start issue in a clean cloned repo #377

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi guys, I've just cloned angular-seed repo into my frontend folder in my project and when I tried to install sudo npm install It gives me the following error:

npm WARN lifecycle angular2-seed@0.0.0~postinstall: cannot run in wd %s %s (wd=%s) angular2-seed@0.0.0 gulp check.versions && gulp build.bundle.rxjs && npm prune && gulp webdriver && gulp print.banner /var/www/html/active_projects/my_project_root/frontend

and when I run sudo npm start:

[17:51:35] Using gulpfile /var/www/html/active_projects/my_project_root/frontend/gulpfile.ts [17:51:35] Starting 'serve.dev'... [17:51:35] Starting 'build.dev'... [17:51:35] Starting 'build.assets.dev'... [17:51:35] Finished 'build.assets.dev' after 395 ms [17:51:35] Starting 'build.html_css'... [17:51:43] 'build.html_css' errored after 7.1 s [17:51:43] Error: Cannot find module '.tmp/Rx.min.js' at Function.Module._resolveFilename (module.js:469:15) at Function.resolve (internal/module.js:27:19) at /var/www/html/active_projects/my_project_root/frontend/tools/config/seed.config.ts:582:59 at Array.forEach (native) at normalizeDependencies (/var/www/html/active_projects/my_project_root/frontend/tools/config/seed.config.ts:582:6) at ProjectConfig.get [as DEPENDENCIES] (/var/www/html/active_projects/my_project_root/frontend/tools/config/seed.config.ts:335:12) at getExternalCss (/var/www/html/active_projects/my_project_root/frontend/tools/tasks/seed/build.html_css.ts:112:16) at getExternalCssStream (/var/www/html/active_projects/my_project_root/frontend/tools/tasks/seed/build.html_css.ts:104:19) at processExternalCss (/var/www/html/active_projects/my_project_root/frontend/tools/tasks/seed/build.html_css.ts:138:10) at processExternalStylesheets (/var/www/html/active_projects/my_project_root/frontend/tools/tasks/seed/build.html_css.ts:85:65) [17:51:43] 'serve.dev' errored after 7.61 s [17:51:43] Error in plugin 'run-sequence(build.html_css)' Message: Cannot find module '.tmp/Rx.min.js' Details: code: MODULE_NOT_FOUND Stack: Error: Cannot find module '.tmp/Rx.min.js'

Is this something related to npm/gulp/bower or angular-seed, initially I thought it was something related uniquelly to this: tmp/this Rx.min.js \ frontend/tools/config/seed.config.ts:582:59**

I've tried, npm run reinstall, npm cache clean && npm install and after read #1451 tsc in my angular-seed root folder(frontend) but I don't think that is really necessary as I'm in unix environment, so I just let the gulpfile.ts not the one in .js or .js.map, are thouse files necessary(gulpfile.js and gulpfile.js.map), curiosity?

Another issue related:#1298 which I tested and had no conflicts with npm run build.prod.

I still couldn't find a solution to it, same error, any idea of what can be? Thanx a lot!

mgechev commented 8 years ago

Hey @JhonyVidal, I'm afraid you've opened this issue in the wrong repository. Probably you mean this one.

Once we move the discussion to here, please also follow up with the result of npm i after you drop gulp build.bundle.rxjs from postinstall and removal of this line.

ghost commented 8 years ago

This issue was moved to mgechev/angular-seed#1496