Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create workspace hangs in v8.0.0 due to google analytics prompt #719

Closed
dopsonbr opened this issue Jun 2, 2019 · 17 comments
Closed

Create workspace hangs in v8.0.0 due to google analytics prompt #719

dopsonbr opened this issue Jun 2, 2019 · 17 comments

Comments

@dopsonbr
Copy link

dopsonbr commented Jun 2, 2019

Creating a new nx workspace hangs in v8.0.0 due to google analytics prompt.
Angular console info: version=v8.0.0, type=standalone, os=mac

Expected behavior: A new workspace is successfully created without prompts. Running the create workspace command with npx is successful. npx output:

~/tmp via ⬢ v10.15.3
➜ rm -rf angular-8-test && npx --ignore-existing create-nx-workspace angular-8-test --directory=angular-8-test --collection=@nrwl/workspace --npmScope=usom --no-skipInstall --no-skipGit --no-interactive
npx: installed 53 in 9.331s
Creating a sandbox with Nx...
ng new "angular-8-test" "--directory=angular-8-test" "--collection=@nrwl/workspace" "--npmScope=usom" "--no-skipInstall" "--no-skipGit" "--no-interactive" --collection=@nrwl/workspace
CREATE angular-8-test/README.md (2696 bytes)
CREATE angular-8-test/angular.json (298 bytes)
CREATE angular-8-test/nx.json (195 bytes)
CREATE angular-8-test/tsconfig.json (509 bytes)
CREATE angular-8-test/tslint.json (1574 bytes)
CREATE angular-8-test/.editorconfig (245 bytes)
CREATE angular-8-test/.gitignore (503 bytes)
CREATE angular-8-test/.prettierignore (57 bytes)
CREATE angular-8-test/.prettierrc (26 bytes)
CREATE angular-8-test/package.json (1145 bytes)
CREATE angular-8-test/.vscode/extensions.json (164 bytes)
CREATE angular-8-test/apps/.gitkeep (1 bytes)
CREATE angular-8-test/libs/.gitkeep (0 bytes)
CREATE angular-8-test/tools/tsconfig.tools.json (218 bytes)
CREATE angular-8-test/tools/schematics/.gitkeep (0 bytes)
    Successfully initialized git.

Actual behavior:

new-workspace angular-8-test --directory=angular-8-test --collection=@nrwl/workspace --npmScope=usom --no-skipInstall --no-skipGit --no-interactive

npm init -y
Wrote to /private/var/folders/cg/dk_vx3351vg_2srbw7ktbnzh0000gn/T/tmp-37450RTS65YJkufTm/package.json:

{
  "name": "tmp-37450RTS65YJkufTm",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}


npm install @angular/cli@latest

> @angular/[email protected] postinstall /private/var/folders/cg/dk_vx3351vg_2srbw7ktbnzh0000gn/T/tmp-37450RTS65YJkufTm/node_modules/@angular/cli
> node ./bin/postinstall/script.js

? Would you like to share anonymous usage data with the Angular Team at Google u
nder
Google’s Privacy Policy at https://policies.google.com/privacy? For more details
 and
how to change this setting, see http://angular.io/analytics. (y/N) 
@fdlsistemi
Copy link

Same issue here.

@joelmuskwe
Copy link

Same Issue too.
Is it possible make the terminal accept input in case if angular cli requires user input for something else in the future.

@Florian3003
Copy link

Same issue here.

@clickboxmobile
Copy link

Same here.

@alexnoise79
Copy link

Console should be editable, is not even possible to copy from it.

@ryanbrear
Copy link

Same problem here.

@mapsgeek
Copy link

solution would be updating the angular cli from outside angular console, running npm install @angular/cli@latest, then open the console and create the workspace it will work fine

@fdlsistemi
Copy link

Not sure about that, mapsgeek.
I had the above-mentioned issue last week on a fresh, brand new install...

Can’t test it right now (currently on vacation): can anyone give it a try?

@mapsgeek
Copy link

well i had the same problem few minutes ago and that's what i did and solved it !

@fdlsistemi
Copy link

Great, thanks for the confirmation then! =))

@joelmuskwe
Copy link

@mapsgeek Thanks it works but this solves the problem but i think the issue is that they assume that angular-console users are using npm for managing packages. For me i was purely using yarn hence the issue was arising till i globally installed @angular/cli in npm. so now i have to manage angular cli versions in both yarn and npm

@mapsgeek
Copy link

@joelmuskwe well i think yes they should fix it somehow but at least people can do this for temporary workaround.

@yglin
Copy link

yglin commented Jun 19, 2019

Stuck there, too.
From @mapsgeek's solution, Installing latest Angular CLI once, globally also, solves the problem, thanks~

npm install -g @angular/cli@latest

@mrmeku
Copy link
Contributor

mrmeku commented Jul 19, 2019

Will be fixed in our next release next week

@mrmeku mrmeku closed this as completed Jul 19, 2019
@papirovdavid
Copy link

Waiting for fix

@st-clair-clarke
Copy link

When will the fix be released?

@emilkoto
Copy link

I have been solved it!
Just put in some terminal (and restart angular console):
ng analytics off
Extracted from: https://angular.io/analytics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests