Angular: ng new error when I create an angular project
I have this error using ng new project_name:
An invalid configuration file was found ['angular.json']. Please delete the file before running the command.
I am getting this error I don't know how to get the solution.
I uninstalled @angular/cli and installed again
npm clean cache doesnt work too (I dont know if it is problem of my npm version
npm version is 6.4.1
node version is 8.11.1
what do i need to solve the problem?
node.js angular angular-cli
add a comment |
I have this error using ng new project_name:
An invalid configuration file was found ['angular.json']. Please delete the file before running the command.
I am getting this error I don't know how to get the solution.
I uninstalled @angular/cli and installed again
npm clean cache doesnt work too (I dont know if it is problem of my npm version
npm version is 6.4.1
node version is 8.11.1
what do i need to solve the problem?
node.js angular angular-cli
The error means what it says. Are you certain that there's no angular.json in current or parent directory?
– estus
Nov 17 '18 at 17:58
after this commandng new project_namedid youcd project_namebefore starting npm??
– Abhishek Ekaanth
Nov 17 '18 at 18:50
add a comment |
I have this error using ng new project_name:
An invalid configuration file was found ['angular.json']. Please delete the file before running the command.
I am getting this error I don't know how to get the solution.
I uninstalled @angular/cli and installed again
npm clean cache doesnt work too (I dont know if it is problem of my npm version
npm version is 6.4.1
node version is 8.11.1
what do i need to solve the problem?
node.js angular angular-cli
I have this error using ng new project_name:
An invalid configuration file was found ['angular.json']. Please delete the file before running the command.
I am getting this error I don't know how to get the solution.
I uninstalled @angular/cli and installed again
npm clean cache doesnt work too (I dont know if it is problem of my npm version
npm version is 6.4.1
node version is 8.11.1
what do i need to solve the problem?
node.js angular angular-cli
node.js angular angular-cli
asked Nov 17 '18 at 17:55
DavidDavid
2,09651733
2,09651733
The error means what it says. Are you certain that there's no angular.json in current or parent directory?
– estus
Nov 17 '18 at 17:58
after this commandng new project_namedid youcd project_namebefore starting npm??
– Abhishek Ekaanth
Nov 17 '18 at 18:50
add a comment |
The error means what it says. Are you certain that there's no angular.json in current or parent directory?
– estus
Nov 17 '18 at 17:58
after this commandng new project_namedid youcd project_namebefore starting npm??
– Abhishek Ekaanth
Nov 17 '18 at 18:50
The error means what it says. Are you certain that there's no angular.json in current or parent directory?
– estus
Nov 17 '18 at 17:58
The error means what it says. Are you certain that there's no angular.json in current or parent directory?
– estus
Nov 17 '18 at 17:58
after this command
ng new project_name did you cd project_name before starting npm??– Abhishek Ekaanth
Nov 17 '18 at 18:50
after this command
ng new project_name did you cd project_name before starting npm??– Abhishek Ekaanth
Nov 17 '18 at 18:50
add a comment |
2 Answers
2
active
oldest
votes
The problem seems to be the _ in project_name resulting in the following error:
Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
Errors:
Data path ".name" should match format "html-selector".
Replace _ e.g. with -.
Further readings:
- Error when creating new project with Angular-CLI 6.1.2
- Style Guide
ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?
– David
Nov 18 '18 at 18:43
What doesng -vsay? Doesng new foo && cd foo && npm i && npm startwork?
– pzaenger
Nov 18 '18 at 18:57
add a comment |
I deleted the file in c:usersXXX.angular.json and it was running ok.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53353955%2fangular-ng-new-error-when-i-create-an-angular-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The problem seems to be the _ in project_name resulting in the following error:
Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
Errors:
Data path ".name" should match format "html-selector".
Replace _ e.g. with -.
Further readings:
- Error when creating new project with Angular-CLI 6.1.2
- Style Guide
ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?
– David
Nov 18 '18 at 18:43
What doesng -vsay? Doesng new foo && cd foo && npm i && npm startwork?
– pzaenger
Nov 18 '18 at 18:57
add a comment |
The problem seems to be the _ in project_name resulting in the following error:
Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
Errors:
Data path ".name" should match format "html-selector".
Replace _ e.g. with -.
Further readings:
- Error when creating new project with Angular-CLI 6.1.2
- Style Guide
ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?
– David
Nov 18 '18 at 18:43
What doesng -vsay? Doesng new foo && cd foo && npm i && npm startwork?
– pzaenger
Nov 18 '18 at 18:57
add a comment |
The problem seems to be the _ in project_name resulting in the following error:
Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
Errors:
Data path ".name" should match format "html-selector".
Replace _ e.g. with -.
Further readings:
- Error when creating new project with Angular-CLI 6.1.2
- Style Guide
The problem seems to be the _ in project_name resulting in the following error:
Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
Errors:
Data path ".name" should match format "html-selector".
Replace _ e.g. with -.
Further readings:
- Error when creating new project with Angular-CLI 6.1.2
- Style Guide
answered Nov 17 '18 at 17:57
pzaengerpzaenger
3,01011626
3,01011626
ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?
– David
Nov 18 '18 at 18:43
What doesng -vsay? Doesng new foo && cd foo && npm i && npm startwork?
– pzaenger
Nov 18 '18 at 18:57
add a comment |
ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?
– David
Nov 18 '18 at 18:43
What doesng -vsay? Doesng new foo && cd foo && npm i && npm startwork?
– pzaenger
Nov 18 '18 at 18:57
ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?
– David
Nov 18 '18 at 18:43
ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?
– David
Nov 18 '18 at 18:43
What does
ng -v say? Does ng new foo && cd foo && npm i && npm start work?– pzaenger
Nov 18 '18 at 18:57
What does
ng -v say? Does ng new foo && cd foo && npm i && npm start work?– pzaenger
Nov 18 '18 at 18:57
add a comment |
I deleted the file in c:usersXXX.angular.json and it was running ok.
add a comment |
I deleted the file in c:usersXXX.angular.json and it was running ok.
add a comment |
I deleted the file in c:usersXXX.angular.json and it was running ok.
I deleted the file in c:usersXXX.angular.json and it was running ok.
answered Nov 24 '18 at 16:31
DavidDavid
2,09651733
2,09651733
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53353955%2fangular-ng-new-error-when-i-create-an-angular-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The error means what it says. Are you certain that there's no angular.json in current or parent directory?
– estus
Nov 17 '18 at 17:58
after this command
ng new project_namedid youcd project_namebefore starting npm??– Abhishek Ekaanth
Nov 17 '18 at 18:50