12-02-2016 05:10 PM
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.
Any hints or help would be greatly appreciated.
Thanks.
12-05-2016 01:13 PM
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.
12-04-2017 04:44 PM
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)
12-04-2017 04:51 PM
Hi, can you give us more details node version and OS?
12-04-2017 04:56 PM
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
12-04-2017 05:29 PM
can you try to update node to the LTS version 8.9.1?
12-05-2017 04:13 AM
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.
12-05-2017 05:01 PM
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.
12-06-2017 08:23 AM
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.
01-08-2018 05:00 PM
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
Same issue when runnning,
yo ng2-alfresco-app --install
Can you please help
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.