JavaScript is required. Please enable JavaScript in your browser settings.
Blog Publication Date: 10/20/2025

Node.js, NPM and Vue.js Commands Guide

In this article, you can learn the most important commands for Node.js, NPM and Vue.js and easily understand what they do.


Node.js Commands

Here are the basic commands you will use when working with Node.js:

Command Explanation
node -vShows the Node.js version.
node [file.js]Runs the specified JS file.
nodeOpens REPL (interactive environment) in terminal.

NPM Basic Commands

NPM (Node Package Manager) is used for package management in Node.js projects. Here are the basic commands:

CommandExplanation
npm -vShows the NPM version.
npm initStarts a new project and creates package.json.
npm init -yCreates package.json with default settings.
npm install [package]Installs the specified package.
npm install -D [package]Installs as a development dependency.
npm uninstall [package]Removes the package from the project.
npm updateUpdates all dependencies.
npm list --depth=0Lists the installed major dependencies.
npm outdatedShows packages that need to be updated.
npm startRuns the "start" script.
npm run [command]Runs defined custom scripts.
npm restartIt runs the restart script in package.json. If this script is not defined, it runs the stop and start scripts, respectively. It can also run lifecycle hooks such as prerestart and postrestart.
npm ciPerforms a clean install (based on package-lock.json).
npm rebuildRecompiles native modules.
npm cache clean --forceClears the NPM cache.
npm config listLists NPM configurations.
npm doctorIt scans the NPM and Node.js environment to check for potential configuration and system issues.
npm helpShows help about commands.
npm install -g [package]Installs the package globally.
npx [komut]Temporarily runs packages within the project or downloaded from the internet.

NPM Advanced Commands

Here are some advanced NPM commands you can use for more advanced package management:

CommandExplanation
npm accessManages package access permissions.
npm loginLogins or creates a user.
npm auditScans for security vulnerabilities.
npm audit fixAutomatically fixes security vulnerabilities.
npm binShows the directory of executable files.
npm bugs <paket>Shows the error reports for the package.
npm completionProvides auto-completion support for npm commands in the terminal.
npm dedupeCleans duplicate dependencies.
npm deprecateRemoves packages.
npm diffShows the difference between two packages.
npm dist-tagManages package tags.
npm docs <package>Opens the package documentation.
npm editOpens the package for editing.
npm explore <package>It goes into the package directory.
npm fundShows support information for dependencies.
npm hookManages webhook operations.
npm linkCreates a symbolic link for local development.
npm packCreates a package archive (.tgz) file.
npm pingTests registry connectivity.
npm prefixShows the project root directory.
npm profileManages the user profile.
npm pruneRemoves unnecessary packages.
npm publishPublishes the package.
npm rootShows the node_modules directory.
npm search <key>Searchs for packages.
npm view <package>Shows package information.
npm whoamiShows the logged-in user.

Vue.js / Vite Commands

You can use the following commands to quickly start and develop projects with Vue.js and Vite:

CommandExplanation
npm create vue@latestCreates a new Vue 3 project (Vite-based).
npx create-vue@latestAlternative Vue project creation command.
npm install -g @vue/cliInstall Vue CLI globally.
vue create [project-name]Starts a new project with Vue CLI.
vue uiOpens a graphical interface for Vue CLI.
npm run devStarts a Vue project in development mode.
npm run buildCreates the production build.
npm run previewPreviews the production build.
npm run lintChecks the code.
npm install vue-routerAdds a routing system.
npm install piniaAdds a state management library.
npm install axiosAdds Axios for API requests.
npm install bootstrapAdds the Bootstrap CSS framework.
npm install @vitejs/plugin-vueInstalls the Vue plugin for Vite.
npm run serveStarts the application in older Vue CLI projects.
npx viteRuns the Vite project.

If you're interested in this content, we recommend checking out our other blog posts on similar topics. You can find more content here.

#Fiyuva, #Education

Featured Blogs

17.12.2024
DIGITAL WORLD

What is SEO? How is SEO done?

SEO stands for Search Engine Optimization.

27.10.2024
ENTREPRENEURSHIP

What is the Definition and Purpose of a Start-Up?

Start-up is a concept used by entrepreneurs.

20.10.2024
DIGITAL WORLD

What is Content Marketing?

To understand content marketing, it's first necessary to grasp the meaning of the words 'content' and 'marketing' and establish the connection between.

04.06.2025
EDUCATION

What is Google Analytics?

You need to be aware of the statistical data your site obtains.

Go Down
Contact Us