Errors starting the Yeoman app generator

cancel
Showing results for 
Search instead for 
Did you mean: 
eamas5525
Active Member

Errors starting the Yeoman app generator

I'm unable to successfully execute yo ng2-alfresco-app on Ubuntu Server 16.04, node v6.9.1, and npm v3.10.8.

I've tried using npm cache clean and rebooting without luck.

My terminal output is below. Everything is ok on installing yo and the generator-ng2-alfresco-app. 

Yeoman Errors

Any hints or help would be greatly appreciated. 

Thanks.

13 Replies
eamas5525
Active Member

Re: Errors starting the Yeoman app generator

Tried uninstalling generator-ng2-alfresco-app and yo, then reinstalled without using the -g "global" option and things installed fine. I made a directory for my project, cd'd into that directory and ran the yo ng2-alfresco-app and luckily the generator banner showed up. Looks like this is resolved. 

udayakumar_p
Active Member

Re: Errors starting the Yeoman app generator

I am having an issue in creating new project. Tried to run 

yo ng2-alfresco-app

Got following error.

index.js:10
async initializing() {
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.get [as ng2-alfresco-app:app] (
\node_modules\yo\node_modules\yeoman-environment\lib\store.js:38:27)

eugenio_romano
Alfresco Employee

Re: Errors starting the Yeoman app generator

Hi, can you give us more details node version and OS?

udayakumar_p
Active Member

Re: Errors starting the Yeoman app generator

Hi,

node: 6.10.1

npm version 4.4.4

OS: Windows 7

npm is actually installed into <user>\AppData\Roaming\npm\node_modules

Followed this guide:

GitHub - Alfresco/generator-ng2-alfresco-app: Yeoman Generator Angular 2 Alfresco Application 

eugenio_romano
Alfresco Employee

Re: Errors starting the Yeoman app generator

can you try to update node to the LTS version 8.9.1?

dvuika
Alfresco Employee

Re: Errors starting the Yeoman app generator

The official LTS version of node is 8.9.1. We use the 8.x branch for the Yeoman generators, the 9.x should also work fine. The 6.x is no longer supported.

udayakumar_p
Active Member

Re: Errors starting the Yeoman app generator

Thanks for the reply. i am finding it hard to update node. there are restrictions on my system. let me check what can be done.

dvuika
Alfresco Employee

Re: Errors starting the Yeoman app generator

There are native installers for various platforms: Node.js . You will have to upgrade anyway at some point, as you are not going to get any support for node.js issues for the non-supported version.

udayakumar_p
Active Member

Re: Errors starting the Yeoman app generator

Hi,

I was able to use node 8.9.4. Now when i run 

yo ng2-alfresco-app

It asks project name and then it asks to install dependencies. When i say yes, the npm install stucks at 

sill install loadAllDepsIntoIdealTree

Same issue when runnning, 

yo ng2-alfresco-app --install

Can you please help

The Archive