'environment variable in not setting up in windows

I am working on a project where I have to use fluent-ffmpeg npm package so I installed it with npm i fluent-ffmpeg and also I have downloaded ffmpeg application file from its website and set its path to environment variable but still I am getting this error

Error: Cannot find ffprobe
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg
\lib\ffprobe.js:145:31
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg
\lib\capabilities.js:194:9
    at wrapper (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\asyn
c\dist\async.js:271:20)
    at next (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\d
ist\async.js:5793:24)
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\dist\as
ync.js:327:20
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg
\lib\capabilities.js:186:13
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg
\lib\capabilities.js:123:9
    at wrapper (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\asyn
c\dist\async.js:271:20)
    at next (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\d
ist\async.js:5793:24)
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\dist\as
ync.js:327:20
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg
\lib\capabilities.js:116:11
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg
\lib\utils.js:223:16
    at F (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\which\whic
h.js:68:16)
    at E (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\which\whic
h.js:80:29)
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\which\which.j
s:89:16
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\isexe\index.j
s:42:5


Solution 1:[1]

Make sure you restart your computer in order to apply the environment variable.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MaxCodes