nx-console: Create workspace hangs in v8.0.0 due to google analytics prompt
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/cli@8.0.1 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)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 12
- Comments: 17 (1 by maintainers)
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 fineSame Issue too. Is it possible make the terminal accept input in case if angular cli requires user input for something else in the future.
Same issue here.