[NPMCLI-187] mgnl jumpstart : Error: Object.values is not a function Created: 14/Jun/18 Updated: 21/Jan/19 Resolved: 21/Jan/19 |
|
| Status: | Closed |
| Project: | Magnolia CLI |
| Component/s: | None |
| Affects Version/s: | 3.0.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Deepak Sah | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mac OSX High Sierra |
||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
Below error while installing demo web app first time:
ERR! Object.values is not a function ERR! TypeError: Object.values is not a function ERR! at Object.when (/usr/local/lib/node_modules/@magnolia/cli/bin/mgnl-jumpstart.js:66:25) ERR! at /usr/local/lib/node_modules/@magnolia/cli/node_modules/run-async/index.js:25:25 ERR! at /usr/local/lib/node_modules/@magnolia/cli/node_modules/run-async/index.js:24:19 ERR! at DeferSubscriber.Rx.Observable.defer [as factory] (/usr/local/lib/node_modules/@magnolia/cli/node_modules/inquirer/lib/ui/prompt.js:109:32) ERR! at DeferSubscriber._callFactory (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/observable/DeferObservable.js:92:27) ERR! at DeferSubscriber.tryDefer (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/observable/DeferObservable.js:85:18) ERR! at new DeferSubscriber (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/observable/DeferObservable.js:81:14) ERR! at DeferObservable._subscribe (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/observable/DeferObservable.js:71:16) ERR! at DeferObservable.Observable._trySubscribe (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/Observable.js:172:25) ERR! at DeferObservable.Observable.subscribe (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/Observable.js:160:93) ERR! at Object.subscribeToResult (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/util/subscribeToResult.js:23:27) ERR! at MergeMapSubscriber._innerSub (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/operators/mergeMap.js:132:38) ERR! at MergeMapSubscriber._tryNext (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/operators/mergeMap.js:129:14) ERR! at MergeMapSubscriber._next (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/operators/mergeMap.js:112:18) ERR! at MergeMapSubscriber.Subscriber.next (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/Subscriber.js:93:18) ERR! at MergeMapSubscriber.notifyNext (/usr/local/lib/node_modules/@magnolia/cli/node_modules/rxjs/operators/mergeMap.js:145:30) |
| Comments |
| Comment by Ervin Vystup [ 14/Jun/18 ] |
|
Hi Deepak, Testing the behavior you describe on a linux machine resulted in no errors for us. Could you please therefore specify in more detail the steps you made? Did you follow the installation steps mentioned here: https://documentation.magnolia-cms.com/display/DOCS56/Install+Magnolia ? Also please specify the version of node.js and npm you are running. Regards, Ervín |
| Comment by Edwin Guilbert [ 25/Jun/18 ] |
|
Hi, I just had this issue when trying to use mgnl jumpstart. It was caused by an old Node.js version installed. I had version 6.10.3 and threw the exception above. Magnolia CLI version 3 requires latest version of Node so updating Node.js to version 8.x or above will fix the issue. (I got 8.11.3). Hope it helps. Edwin. |
| Comment by Antti Hietala [ 21/Jan/19 ] |
|
Since this is caused by old version of Node I'm closing it as duplicate of NPMCLI-179. |