Guest User

Untitled

a guest
May 23rd, 2018
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. angular6@0.0.0 start /usr/src/app
  2. > ng serve --host 0.0.0.0 --disable-host-check -p 3000
  3.  
  4. Could not find module "@angular-devkit/build-angular" from "/usr/src/app".
  5. Error: Could not find module "@angular-devkit/build-angular" from "/usr/src/app".
  6. at Object.resolve (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/node/resolve.js:141:11)
  7. at Observable.rxjs_1.Observable [as _subscribe] (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/src/architect.js:132:40)
  8. at Observable.subscribe (/usr/local/lib/node_modules/@angular/cli/node_modules/rxjs/internal/Observable.js:162:69)
  9. at DoOperator.call (/usr/local/lib/node_modules/@angular/cli/node_modules/rxjs/internal/operators/tap.js:71:23)
  10. at Observable.subscribe (/usr/local/lib/node_modules/@angular/cli/node_modules/rxjs/internal/Observable.js:159:22)
  11. at /usr/local/lib/node_modules/@angular/cli/node_modules/rxjs/internal/util/subscribeTo.js:22:31
  12. at Object.subscribeToResult (/usr/local/lib/node_modules/@angular/cli/node_modules/rxjs/internal/util/subscribeToResult.js:7:45)
  13. at MergeMapSubscriber._innerSub (/usr/local/lib/node_modules/@angular/cli/node_modules/rxjs/internal/operators/mergeMap.js:132:38)
  14. at MergeMapSubscriber._tryNext (/usr/local/lib/node_modules/@angular/cli/node_modules/rxjs/internal/operators/mergeMap.js:129:14)
  15. at MergeMapSubscriber._next (/usr/local/lib/node_modules/@angular/cli/node_modules/rxjs/internal/operators/mergeMap.js:112:18)
  16. npm ERR! code ELIFECYCLE
  17. npm ERR! errno 1
  18. npm ERR! angular6@0.0.0 start: `ng serve --host 0.0.0.0 --disable-host-check -p 3000`
  19. npm ERR! Exit status 1
  20. npm ERR!
  21. npm ERR! Failed at the angular6@0.0.0 start script.
  22. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  23. angular-ayaresa |
  24. npm ERR! A complete log of this run can be found in:
  25. npm ERR! /root/.npm/_logs/2018-05-23T10_03_17_591Z-debug.log
  26.  
  27. # Create image based on the official Node 8.10.0 image from dockerhub
  28. FROM node:8.10.0
  29. # Create a directory where our app will be placed
  30. RUN mkdir -p /usr/src/app
  31.  
  32. # Change directory so that our commands run inside this new directory
  33. WORKDIR /usr/src/app
  34.  
  35. # Copy dependency definitions
  36. COPY ./quickstart /usr/src/app
  37.  
  38. # Install dependecies
  39. RUN rm -rf node_modules/
  40.  
  41. RUN npm i --save
  42.  
  43. RUN npm i npm@latest -g
  44. RUN npm install -g @angular/cli
  45.  
  46. # Expose the port the app runs in
  47. EXPOSE 4200
  48.  
  49. # Serve the app
  50. CMD ["npm", "start"]
  51.  
  52. npm i -D @angular-devkit/core
Add Comment
Please, Sign In to add comment