Skip to content

Cannot read property 'glob' of null #5505

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
Nidhi08 opened this issue Mar 19, 2017 · 4 comments
Closed

Cannot read property 'glob' of null #5505

Nidhi08 opened this issue Mar 19, 2017 · 4 comments

Comments

@Nidhi08
Copy link

Nidhi08 commented Mar 19, 2017

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

ng --version
@angular/cli: 1.0.0-rc.2
node: 6.10.0
os: darwin x64

npm -v
3.10.10

MacOs = Sierra

Repro steps.

If I execute ng new as root/administrator then I get this error.
If I don't execute ng new as root then the project is created successfully, but I get this error while executing ng build and ng serve --open.

The log given by the failure.

Nidhis-MacBook-Pro:hello nidhisakhala08$ ng serve --open
Cannot read property 'glob' of null
TypeError: Cannot read property 'glob' of null
at ObjectSchemaTreeNode._set (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:224:131)
at new ObjectSchemaTreeNode (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:209:14)
at OneOfSchemaTreeNode._createChildProperty (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:148:26)
at OneOfSchemaTreeNode._typesPrototype.schema.oneOf.map (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:161:25)
at Array.map (native)
at OneOfSchemaTreeNode (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:160:48)
at ArraySchemaTreeNode._createChildProperty (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:148:26)
at ArraySchemaTreeNode._set (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:286:39)
at new ArraySchemaTreeNode (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:267:14)
at ObjectSchemaTreeNode._createChildProperty (/Users/nidhisakhala08/Desktop/hello/node_modules/@ngtools/json-schema/src/schema-tree.js:148:26)

Desired functionality.

Mention any other details that might be useful.

I read multiple issues related to this problem but they are on Ubuntu so I am posting this as a new issue.

@filipesilva
Copy link
Contributor

Dupe of #4207, fixed in #5523, out next release.

@Nidhi08
Copy link
Author

Nidhi08 commented Apr 6, 2017

I downloaded the next release by installing @angular/cli@latest.
I still get the same error.

@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.

@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

3 participants