TypeError: Cannot read property 'config' of null at Class.run

2,698 views
Skip to first unread message

Evertonildo Maia

unread,
Jun 9, 2017, 11:12:38 PM6/9/17
to Angular and AngularJS discussion
Pessoal, tenho um projeto em angular 2, atualizei para o 4 e o cli e quebrou, não consigo subir mais
Alguém já viu essa mensagem


Cannot read property 'config' of null
TypeError: Cannot read property 'config' of null
    at Class.run (D:\T45000011054\....\node_modules\@angular\cli\tasks\serve.js:22:63)
    at check_port_1.checkPort.then.port (D:\T45000011054\...\node_modules\@angular\cli\commands\serve.js:110:2
6)
    at process._tickCallback (internal/process/next_tick.js:103:7)
npm ERR!
npm ERR! Failed at the sistema-captac...@0.0.0 start script 'ng serve'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sistema-captacao-recursos-scr package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ng serve
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs sistema-captacao-recursos-scr
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls sistema-captacao-recursos-scr
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\evertonildo\AppData\Roaming\npm-cache\_logs\2017-06-09T18_41_21_851Z-debug.log

Sander Elias

unread,
Jun 9, 2017, 11:30:29 PM6/9/17
to Angular and AngularJS discussion
Hi Evertonildo,

Tjsa, daar kan ik geen snars van lezen, maar ik vermoed dat je wil updaten van 2 naar 4?

Try the following steps remove the `node_modules` folder. Delete the yarn.lock is you have one. then `npm Install` or the yarn variant.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages