After installing Weback, run Webpack-v error: ' Webpack ' is not internal or external command

Source: Internet
Author: User

Recently, after the back-end colleague installs the Webpack, the Discovery command cannot run up.

Cause: The colleague installed Webpack when the global storage path and cache path to D disk, not in the default directory of C drive.

I think it may be because the system received the Webpack command will go to the C-disk to find Webpack file Parsing command, but there is no file in the C disk, and did not tell the system that the Webpack installation files changed position, the system does not know, did not find, will not run up.

WORKAROUND: Set the PATH environment variable to tell the system to install the file on the D drive.

Note: At the time of the test, the cmd command window is always the same, even if the environment variable is set, the command window is the previous system default C drive. You need to turn it off again to re-read the configuration and find the D drive in the environment variable.

After installing Weback, run Webpack-v error: ' Webpack ' is not internal or external command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.