Skip to content

ng new fails - Package install failed, see above. ng serve fails - Cannot read property 'glob' of null #4889

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

Closed
huntsberg opened this issue Feb 21, 2017 · 5 comments

Comments

@huntsberg
Copy link

huntsberg commented Feb 21, 2017

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Linux Ubuntu (docker node container)

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

@angular/cli: 1.0.0-beta.32.3
node: 7.5.0
os: linux x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

ng new myApp

The log given by the failure.

Normally this include a stack trace and some more information.

ng new myApp
ng new.txt

ng serve
serve.txt

Mention any other details that might be useful.

I don't think that I did anything special... just followed the directions.


Thanks! We'll be in touch soon.

@huntsberg
Copy link
Author

It looks like #4207 is the same issue. If you set up the environment in your home directory, it fails. It's a common pattern in docker to put the app in the home directory.

Changing the home directory seems to resolve the issue.

@filipesilva
Copy link
Contributor

#4919 (there's more info there). I'll add your comment there as well.

@balr404
Copy link

balr404 commented May 9, 2017

I have tried the following option to resolve the issue
Steps to resolve the issue

$ pwd
it shows —> /Users/YourName /*** That is your Home path***/
Execute the below command to display the hidden files

$ defaults write com.apple.Finder AppleShowAllFiles true
$ killall Finder
After executing the above command you will see the hidden files.
if “.angular-cli.json” file exist under “/Users/yourname” (i.e Home Path) then remove “.angular-cli.json” file.

then navigate to your application path and try execute ‘ng’ command.

@Sree-001
Copy link

I had the same issue. I just deleted the .angular-cli.json file from my user directory and it resolved the issue.

To resolve this issue in Ubuntu, follow the below steps

  1. cd /home/userName (provide the appropriate userName.)
  2. ls -a
  3. If you find .angular-cli.json. listed then use the command
    rm -r .angular*

@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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants