Guest User

Untitled

a guest
Dec 25th, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.72 KB | None | 0 0
  1. Install node latest v7
  2. Install angular cli > npm install -g @angular/cli
  3. Open CMD and via CMD navigate to Desktop > cd Desktop
  4. Create an angular project via angular CLI > ng new testNg
  5. Navigate to project > cd testing
  6. Run ng serve to launch > ng serve ( response all good, page loaded)
  7. Navigate to app to add the code from github > cd src/app
  8. Clone from github using SSH into the app folder > git clone git@github.com:akserg/ng2-dnd.git
  9. Run ng server to launch > ng serve ( errors)
  10. Found out I had a missing typescript, so install typescript > npm install typescript –save
  11. 10.2 Added on type Testingnode_modulestypescriptlibtypescript.js on line 8735 console.log(fileName); - that is inside the createSourceFile function.
  12. Found out that rxjs not installed > npm install rxjs –save
  13. Ng serve> still error
  14. Ng build > still error
  15.  
  16. angular-cli: 1.0.0-beta.28.3
  17. node: 7.7.1
  18. os: win32 x64
  19. @angular/common: 2.4.9
  20. @angular/compiler: 2.4.9
  21. @angular/core: 2.4.9
  22. @angular/forms: 2.4.9
  23. @angular/http: 2.4.9
  24. @angular/platform-browser: 2.4.9
  25. @angular/platform-browser-dynamic: 2.4.9
  26. @angular/router: 3.4.9
  27. @angular/compiler-cli: 2.4.9
  28.  
  29. fallbackLoader option has been deprecated - replace with "fallback"
  30. loader option has been deprecated - replace with "use"
  31. fallbackLoader option has been deprecated - replace with "fallback"
  32. loader option has been deprecated - replace with "use"
  33. fallbackLoader option has been deprecated - replace with "fallback"
  34. loader option has been deprecated - replace with "use"
  35. fallbackLoader option has been deprecated - replace with "fallback"
  36. loader option has been deprecated - replace with "use"
  37. Cannot read property 'length' of undefined
  38. TypeError: Cannot read property 'length' of undefined
  39. at createSourceFile (C:UsersctarasovsDesktopTestingnode_modulestypescr
  40. iptlibtypescript.js:8980:109)
  41. at parseSourceFileWorker (C:UsersctarasovsDesktopTestingnode_modulesty
  42. pescriptlibtypescript.js:8940:26)
  43. at Object.parseSourceFile (C:UsersctarasovsDesktopTestingnode_modulest
  44. ypescriptlibtypescript.js:8899:26)
  45. at Object.createSourceFile (C:UsersctarasovsDesktopTestingnode_modules
  46. typescriptlibtypescript.js:8727:29)
  47. at WebpackCompilerHost.getSourceFile (C:UsersctarasovsDesktopTestingnod
  48. e_modules@ngtoolswebpacksrccompiler_host.js:210:27)
  49. at findSourceFile (C:UsersctarasovsDesktopTestingnode_modulestypescrip
  50. tlibtypescript.js:45859:29)
  51. at processSourceFile (C:UsersctarasovsDesktopTestingnode_modulestypesc
  52. riptlibtypescript.js:45790:27)
  53. at C:UsersctarasovsDesktopTestingnode_modulestypescriptlibtypescript
  54. .js:45901:17
  55. at Object.forEach (C:UsersctarasovsDesktopTestingnode_modulestypescrip
  56. tlibtypescript.js:1115:30)
  57. at processReferencedFiles (C:UsersctarasovsDesktopTestingnode_modulest
  58. ypescriptlibtypescript.js:45899:16)
  59. at findSourceFile (C:UsersctarasovsDesktopTestingnode_modulestypescrip
  60. tlibtypescript.js:45884:21)
  61. at processSourceFile (C:UsersctarasovsDesktopTestingnode_modulestypesc
  62. riptlibtypescript.js:45790:27)
  63. at processRootFile (C:UsersctarasovsDesktopTestingnode_modulestypescri
  64. ptlibtypescript.js:45694:13)
  65. at C:UsersctarasovsDesktopTestingnode_modulestypescriptlibtypescript
  66. .js:45151:60
  67. at Object.forEach (C:UsersctarasovsDesktopTestingnode_modulestypescrip
  68. tlibtypescript.js:1115:30)
  69. at Object.createProgram (C:UsersctarasovsDesktopTestingnode_modulestyp
  70. escriptlibtypescript.js:45151:16)
  71. at AotPlugin._setupOptions (C:UsersctarasovsDesktopTestingnode_modules
  72. @ngtoolswebpacksrcplugin.js:124:28)
  73. at new AotPlugin (C:UsersctarasovsDesktopTestingnode_modules@ngtoolsw
  74. ebpacksrcplugin.js:23:14)
  75. at Object.exports.getNonAotConfig (C:UsersctarasovsDesktopTestingnode_m
  76. odulesangular-climodelswebpack-configstypescript.js:26:13)
  77. at new NgCliWebpackConfig (C:UsersctarasovsDesktopTestingnode_modulesa
  78. ngular-climodelswebpack-config.js:24:37)
  79. at Class.run (C:UsersctarasovsDesktopTestingnode_modulesangular-clita
  80. sksserve.js:31:29)
  81. at C:UsersctarasovsDesktopTestingnode_modulesangular-clicommandsserv
  82. e.run.js:22:22
  83. at process._tickCallback (internal/process/next_tick.js:109:7)
  84.  
  85. C:UsersctarasovsDesktopTesting>
  86.  
  87. {
  88. "name": "dnd-2.4",
  89. "version": "1.0.0",
  90. "description": "This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.0-rc.1.",
  91. "main": "karma.conf.js",
  92. "private": true,
  93. "dependencies": {
  94. "@angular/common": "^2.4.8",
  95. "@angular/compiler": "^2.4.8",
  96. "@angular/core": "^2.4.8",
  97. "@angular/forms": "^2.4.8",
  98. "@angular/http": "^2.4.8",
  99. "@angular/platform-browser": "^2.4.8",
  100. "@angular/platform-browser-dynamic": "^2.4.8",
  101. "@angular/router": "^3.4.0",
  102. "core-js": "^2.4.1",
  103. "rxjs": "^5.1.0",
  104. "zone.js": "^0.7.6"
  105. },
  106. "devDependencies": {
  107. "@angular/cli": "1.0.0-rc.1",
  108. "@angular/compiler-cli": "^2.4.0",
  109. "@types/jasmine": "2.5.38",
  110. "@types/node": "~6.0.60",
  111. "codelyzer": "~2.0.0",
  112. "jasmine-core": "~2.5.2",
  113. "jasmine-spec-reporter": "~3.2.0",
  114. "karma": "~1.4.1",
  115. "karma-chrome-launcher": "~2.0.0",
  116. "karma-cli": "~1.0.1",
  117. "karma-jasmine": "~1.1.0",
  118. "karma-jasmine-html-reporter": "^0.2.2",
  119. "karma-coverage-istanbul-reporter": "^0.2.0",
  120. "protractor": "~5.1.0",
  121. "ts-node": "~2.0.0",
  122. "tslint": "~4.4.2",
  123. "typescript": "~2.0.0"
  124. },
  125. "scripts": {
  126. "ng": "ng",
  127. "start": "ng serve",
  128. "build": "ng build",
  129. "test": "ng test",
  130. "lint": "ng lint",
  131. "e2e": "ng e2e"
  132. },
  133. "author": "",
  134. "license": "ISC"
  135. }
  136.  
  137. npm init
  138. npm uninstall -g angular-cli
  139. npm uninstall angular-cli
  140. npm uninstall angular-cli@1.0.0-rc.1
  141. npm cache clean
  142. npm install angular-cli@1.0.0-rc.0
  143. ng --version
  144.  
  145. Chriss-iMac:dragNdrop-ng2.4.9.1 christarasovs$ ng --version
  146. Your global Angular CLI version (1.0.0-rc.1) is greater than your local
  147. version (1.0.0-rc.0). The local Angular CLI version is used.
  148.  
  149. To disable this warning use "ng set --global warnings.versionMismatch=false".
  150. _ _ ____ _ ___
  151. / _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
  152. / △ | '_ / _` | | | | |/ _` | '__| | | | | | |
  153. / ___ | | | | (_| | |_| | | (_| | | | |___| |___ | |
  154. /_/ __| |_|__, |__,_|_|__,_|_| ____|_____|___|
  155. |___/
  156. @angular/cli: 1.0.0-rc.0
  157. node: 7.7.1
  158. os: darwin x64
  159. @angular/common: 2.4.9
  160. @angular/compiler: 2.4.9
  161. @angular/core: 2.4.9
  162. @angular/forms: 2.4.9
  163. @angular/http: 2.4.9
  164. @angular/platform-browser: 2.4.9
  165. @angular/platform-browser-dynamic: 2.4.9
  166. @angular/router: 3.4.9
  167. @angular/cli: 1.0.0-rc.0
  168. @angular/compiler-cli: 2.4.9
  169.  
  170.  
  171.  
  172. Chriss-iMac:dragNdrop-ng2.4.9.1 christarasovs$ ng serve
  173. Your global Angular CLI version (1.0.0-rc.1) is greater than your local
  174. version (1.0.0-rc.0). The local Angular CLI version is used.
  175.  
  176. To disable this warning use "ng set --global warnings.versionMismatch=false".
  177. Cannot read property 'length' of undefined
  178. TypeError: Cannot read property 'length' of undefined
  179. at createSourceFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:8980:109)
  180. at parseSourceFileWorker (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:8940:26)
  181. at Object.parseSourceFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:8899:26)
  182. at Object.createSourceFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:8727:29)
  183. at WebpackCompilerHost.getSourceFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/@ngtools/webpack/src/compiler_host.js:210:27)
  184. at findSourceFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45859:29)
  185. at processSourceFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45790:27)
  186. at /Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45901:17
  187. at Object.forEach (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:1115:30)
  188. at processReferencedFiles (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45899:16)
  189. at findSourceFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45884:21)
  190. at processSourceFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45790:27)
  191. at processRootFile (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45694:13)
  192. at /Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45151:60
  193. at Object.forEach (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:1115:30)
  194. at Object.createProgram (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/typescript/lib/typescript.js:45151:16)
  195. at AotPlugin._setupOptions (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/@ngtools/webpack/src/plugin.js:124:28)
  196. at new AotPlugin (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/@ngtools/webpack/src/plugin.js:23:14)
  197. at _createAotPlugin (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/@angular/cli/models/webpack-configs/typescript.js:55:12)
  198. at Object.exports.getNonAotConfig (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/@angular/cli/models/webpack-configs/typescript.js:70:19)
  199. at NgCliWebpackConfig.buildConfig (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/@angular/cli/models/webpack-config.js:27:37)
  200. at Class.run (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/@angular/cli/tasks/serve.js:37:98)
  201. at check_port_1.checkPort.then.port (/Users/christarasovs/Desktop/dnd/dragNdrop-ng2.4.9.1/node_modules/@angular/cli/commands/serve.js:103:26)
  202. at process._tickCallback (internal/process/next_tick.js:109:7)
  203. Chriss-iMac:dragNdrop-ng2.4.9.1 christarasovs$
  204.  
  205. "dependencies": {
  206. "@angular/common": "2.4.8",
  207. "@angular/compiler": "2.4.8",
  208. "@angular/compiler-cli": "2.4.8",
  209. "@angular/core": "2.4.8",
  210. "@angular/forms": "2.4.8",
  211. "@angular/http": "2.4.8",
  212. "@angular/platform-browser": "2.4.8",
  213. "@angular/platform-browser-dynamic": "2.4.8",
  214. "@angular/router": "3.4.8",
  215. "@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.16",
  216. "angular-cli": "1.0.0-beta.28.3",
  217. "animate.css": "3.5.2",
  218. "automapper-ts": "1.8.1",
  219. "awesome-typescript-loader": "3.0.8",
  220. "bootstrap": "4.0.0-alpha.5",
  221. "chart.js": "2.5.0",
  222. "core-js": "2.4.1",
  223. "font-awesome": "^4.7.0",
  224. "karma-phantomjs-launcher": "1.0.2",
  225. "ng2-charts": "1.5.0",
  226. "ng2-pagination": "1.0.1",
  227. "reflect-metadata": "0.1.8",
  228. "rxjs": "5.2.0",
  229. "signalr": "2.2.1",
  230. "systemjs": "0.19.39",
  231. "ts-helpers": "1.1.1",
  232. "typescript": "2.2.1",
  233. "underscore": "1.8.3",
  234. "zone.js": "0.7.2"
  235. },
  236. "devDependencies": {
  237. "@types/core-js": "0.9.35",
  238. "@types/jasmine": "2.5.41",
  239. "@types/underscore": "1.7.36",
  240. "codelyzer": "3.0.0-beta.3",
  241. "del": "2.2.1",
  242. "gulp": "3.9.1",
  243. "gulp-fail": "1.0.5",
  244. "gulp-sass": "2.3.2",
  245. "gulp-zip": "3.0.2",
  246. "jasmine-core": "2.5.2",
  247. "jasmine-spec-reporter": "2.5.0",
  248. "karma": "1.2.0",
  249. "karma-chrome-launcher": "2.0.0",
  250. "karma-cli": "1.0.1",
  251. "karma-jasmine": "1.0.2",
  252. "karma-remap-istanbul": "0.2.1",
  253. "protractor": "4.0.13",
  254. "ts-node": "1.2.1",
  255. "tslint": "4.5.1"
  256. }
  257.  
  258. npm install -g @angular/cli
Add Comment
Please, Sign In to add comment