DEV Community

Ngobrolin IT
Ngobrolin IT

Posted on

Path Environment Variable Di Windows

Pernahkan teman-teman menemukan error seperti “[command] is not recognized as an internal or external command” ketika menjalankan beberapa perintah untuk web development.

Perintah apa saja yang digunakan dalam web development, kira-kira perintah-perintah berikut ini.

Microsoft Windows [Version 10.0.19045.2486]
(c) Microsoft Corporation. All rights reserved.

C:\Users\dhimaskirana>mysqld --initialize
'mysqld' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dhimaskirana>mysql --version
'mysql' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dhimaskirana>php -v
'php' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dhimaskirana>npm -v
'npm' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dhimaskirana>node -v
'node' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dhimaskirana>composer -v
'composer' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dhimaskirana>
Enter fullscreen mode Exit fullscreen mode

Nah jika terjadi error seperti di atas, artinya aplikasi yang anda gunakan belum di set ke dalam PATH Environment Variables di Windows.

Nah buat yang tidak tahu apa itu PATH Environment Variables Windows, singkatnya adalah konfigurasi di Windows yang berfungsi mengatur path/lokasi aplikasi secara global, sehingga aplikasi bisa diakses secara global. Nah kita akan mengakses aplikasi menggunakan command line di command prompt.

PATH Environment Variables Windows

Untuk mengatur path tersebut, kamu bisa ke environment variable Windows.

Caranya kalian menuju ke System’s Properties -> klik Advanced System Properties -> pilih tab Advanced. Klik tombol Environment Variables di paling bawah.

Kemudian di bagian System Variables, cari variable dengan nama Path, kalian klik edit. Kemudian klik tombol New, masukan alamat lokasi aplikasi misalkan C:\wp-cli. Kemudian klik OK untuk menyimpan, klik OK terus sampai jendela keluar.

Selamat mencoba 🙂

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay