As per the following link: when creating ASP.NET Core App, You have just show all files in solution to find the package.json, but in my case i am not able to find it. I need to add angular2 and WebPack dependencies.
So what is the problem?
As per the following link: when creating ASP.NET Core App, You have just show all files in solution to find the package.json, but in my case i am not able to find it. I need to add angular2 and WebPack dependencies.
So what is the problem?
You can add package.json
in Visual Studio 2015 like this-
Right click on Project > Add > New Item. In new Item popup window, you can select npm configuration file like below-
I'm not a front end expert but I do recall during one of the ASP.NET community standups Mads Kristensen talking about a bundling and minification changes that I think may have replaced gulp etc as the default. Maybe the default template no longer pulls in npm because of that?
I can see bower only in the new ASP.NET core template.
But as Sanket says, you can add in what you want.
Links to the bundler/minifier stuff below:
https://youtu.be/p6NUkeTVsGE?list=PL0M0zPgJ3HSftTAAHttA3JQU4vOjXFquF - Mads talking on bundling.
https://github.com/madskristensen/BundlerMinifier/wiki
https://visualstudiogallery.msdn.microsoft.com/9ec27da7-e24b-4d56-8064-fd7e88ac1c40
You should use npm init -y
to initialise package.json.
This happened to me recently, too. Reason for not generating package.json was old node.js version. If you searching for solution to this problem, try creating standalone vue project with node. If you get TypeError, it's most likely old node version
© 2022 - 2024 — McMap. All rights reserved.