Topic: Object prototype may only be an Object or null: undefined

dianalawless free asked 5 years ago


\*\*Expected behavior\*\*Following this Getting Started: https://mdbootstrap.com/education/angular/getting-started/At step 3, c:\\...agenda-app\\start-here> npm install \*\*\*0 vulnerabilitiesc:\\...agenda-app\\start-here> npm start \*\*\*Compiled Successfully\*\*Actual behavior\*\*I get 0 vulnerabillities but it DOES NOT compile successfully.I get this error: TypeError: Object prototype may only be an Object or null: undefinedSee attached log.\*\*Resources (screenshots, code snippets etc.)\*\* 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'start' 1 verbose cli ] 2 info using npm@6.11.3 3 info using node@v12.7.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle mdb-angular-free@7.4.1~prestart: mdb-angular-free@7.4.1 6 info lifecycle mdb-angular-free@7.4.1~start: mdb-angular-free@7.4.1 7 verbose lifecycle mdb-angular-free@7.4.1~start: unsafe-perm in lifecycle true 8 verbose lifecycle mdb-angular-free@7.4.1~start: PATH: C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\user\Source\Repos\Angular-Tutorial-Agenda-App\agenda-app\start-here\node_modules.bin;C:\Python27\;C:\Python27\Scripts;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Users\user\AppData\Local\Yarn\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v4.0.30319\1033;C:\Users\user.dotnet\tools;C:\Users\user\AppData\Roaming\npm;C:\Users\user\AppData\Local\Programs\Fiddler 9 verbose lifecycle mdb-angular-free@7.4.1~start: CWD: C:\Users\user\Source\Repos\Angular-Tutorial-Agenda-App\agenda-app\start-here 10 silly lifecycle mdb-angular-free@7.4.1~start: Args: [ '/d /s /c', 'ng serve' ] 11 silly lifecycle mdb-angular-free@7.4.1~start: Returned: code: 1 signal: null 12 info lifecycle mdb-angular-free@7.4.1~start: Failed to exec start script 13 verbose stack Error: mdb-angular-free@7.4.1 start: ng serve 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:203:13) 13 verbose stack at ChildProcess. (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:203:13) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) 14 verbose pkgid mdb-angular-free@7.4.1 15 verbose cwd C:\Users\user\Source\Repos\Angular-Tutorial-Agenda-App\agenda-app\start-here 16 verbose Windows_NT 10.0.17134 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "start" 18 verbose node v12.7.0 19 verbose npm v6.11.3 20 error code ELIFECYCLE 21 error errno 1 22 error mdb-angular-free@7.4.1 start: ng serve 22 error Exit status 1 23 error Failed at the mdb-angular-free@7.4.1 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]


Arkadiusz Idzikowski staff commented 5 years ago

When exactly did this error occur? On which step of the tutorial?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.1.1
  • Device: desktop
  • Browser: Chrome
  • OS: Windows 10 64-bit
  • Provided sample code: Yes
  • Provided link: Yes