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

Connection drops on ng new command #1130

Closed
RobiFerentz opened this issue Jun 18, 2016 · 6 comments
Closed

Connection drops on ng new command #1130

RobiFerentz opened this issue Jun 18, 2016 · 6 comments
Labels
needs: more info Reporter must clarify the issue

Comments

@RobiFerentz
Copy link

When attempting to use ng new whateverApp the printout reaches the installing modules part and then simply stalls. The net connection seems to get blocked and it actually requires a router reboot.
This may be a problem with node itself, rather than this cli, but since it happens consistently, I'm posting it here.

I'm on osx (El Capitan)

ng --version gives this:

re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.6
node: 6.2.2
os: darwin x64

@filipesilva filipesilva added the needs: more info Reporter must clarify the issue label Jun 18, 2016
@filipesilva
Copy link
Contributor

Hm, not too sure of what's happening myself. Can you try installing via npm separately?

ng new whateverApp --skip-npm
cd whateverApp
npm install

@RobiFerentz
Copy link
Author

RobiFerentz commented Jun 19, 2016

I've tried it again at work and while it takes a while, it manages to finish the setup.
Of course, at work I'm on LAN connection, not wifi, and the connection didn't drop.

I will try your suggestion when at home and see if anything changes.

@stevenpkent
Copy link

@filipesilva I am seeing this issue also. I tried your suggested steps
It works!

One thing I noticed. And maybe it is fine, not sure. When I npm installed angular-cli, the ember-cli.json file was added with owner as root. I looked at the other files in the .config/configstore folder and the owner on them was me.

My info, if you need it
$ ng -v
(node:1483) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.6
node: 6.2.2
os: darwin x64

HTH

@mrsweaters
Copy link

mrsweaters commented Jun 20, 2016

I'm having the install hang here when I run ng new appName:

⠦ Installing packages for tooling via npm
├── es6-shim (ambient)
├── angular-protractor (ambient dev)
├── jasmine (ambient dev)
└── selenium-webdriver (ambient dev)

 https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz
 https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz
 https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz
 https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz

Works fine if I run npm install separately.

@filipesilva
Copy link
Contributor

This problem seems to be related to a new one we had recently, and #1250 was the fix. It should also fix this one.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: more info Reporter must clarify the issue
Projects
None yet
Development

No branches or pull requests

4 participants