In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to delete useless npm packages in the project". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
In the company, most of us are multi-person development and long-term maintenance of a project, but sometimes we will find that there are a lot of obsolete npm packages in package.json. We want to delete them, but we can't delete them blindly. Depcheck, here it comes.
How to use it Step 1 Global installation: npm install depcheck -g Step 2
Depcheck is executed under the project change directory (here we take our own project to do the test). After execution, manually delete it according to the results obtained by ourselves.
Unused dependencies* @xkeshi/vue-qrcode* any-promise* backpack-core* cookie-universal-nuxt* tls* to* vue-loader* vue-meta-infoUnused devDependencies* @babel/cli* @babel/preset-es2015* @babel/preset-react* @babel/preset-stage-0* @babel/register* @nuxtjs/sentry* axios-mock-adapter* babel-eslint* babel-loader* babel-plugin-component* child_process* css-loader* element-theme* element-theme-chalk* es3-compatible-webpack-plugin* es3ify-loader* eslint-friendly-formatter* eslint-loader* eslint-plugin-html* express* fs* http-proxy-middleware* jsencrypt* lang* net* node-sass* post-loader* qs* sass-loader* vue-style-loader* webpack-cliMissing dependencies* vue-no-ssr: ./. nuxt/components/no-ssr.js* unfetch: ./. nuxt/client.js* consola: ./. nuxt/client.js* nuxt_plugin_route_338f5eda: ./. nuxt/index.js* nuxt_plugin_main_6a83762f: ./. nuxt/index.js* nuxt_plugin_http_6a8178fe: ./. nuxt/index.js* nuxt_plugin_qrcode_7ec40a18: ./. nuxt/index.js* nuxt_plugin_aliyunosssdkmin_02f21098: ./. nuxt/index.js* nuxt_plugin_aliyunuploadsdk131min_c379eff6: ./. nuxt/index.js* vue-router: ./. nuxt/router.js* node-fetch: ./. nuxt/server.js* vuex: ./. nuxt/store.js* ~: ./ assets/more-editor/more-editor.js* resize-observer-polyfill: ./ component/util/resizeEvent.js* co: ./ pages/circle/component/dakaEditor/editor.vue"How to delete useless npm packages in projects" is introduced here. Thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.