[英]How do I add npm packages into visual studio 2019 with .net core project?
I am using react for front end along with .net core in backend.我在前端使用 React,在后端使用 .net 核心。 I am told to to use visual studio 2019 to work with .net core and this is the first time I am using visual studio.我被告知要使用 visual studio 2019 来处理 .net 核心,这是我第一次使用 visual studio。 I installed react + redux template and I am wondering how can I add npm packages such as react-table
or @material-ui/core
in my project?我安装了 react + redux 模板,我想知道如何在我的项目中添加 npm 包,例如react-table
或@material-ui/core
? Can I just straight add to dependencies
inside package.json file like "@material-ui/core": "version"
and will it automatically install when I save?我可以直接添加到 package.json 文件中的dependencies
项,如"@material-ui/core": "version"
并且它会在我保存时自动安装吗? And also how do I uninstall npm packages as well?还有如何卸载 npm 包?
To install npm packages into your project just simply use要将 npm 包安装到您的项目中,只需简单地使用
npm install <package name>
To uninstall you use要卸载你使用
npm uninstall <package name>
You need to use these commands within the terminal.您需要在终端中使用这些命令。 You can open a integrated terminal window in vscode: https://code.visualstudio.com/docs/editor/integrated-terminal可以在vscode中打开一个集成终端window: https://code.visualstudio.com/docs/editor/integrated-terminal
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.