【发布时间】:2016-06-19 00:31:25
【问题描述】:
我正在学习 React.js,我正在使用 Windows 8 OS。我已经导航到我的根文件夹
1.Created the package.json file by npm init
2. install webpack by npm install -S webpack.now webpack has been downloaded to my modules folder
3. install webpack globally by typing npm install webpack -g
4. i am also having a webpack.config.js in my root folder which contains the source and ouput directory
5. when i type the webpack command i am getting the below error.
webpack 未被识别为内部或外部命令、可运行程序或批处理文件
【问题讨论】:
-
我遇到了这个问题,但是重启IDE(在我的情况下是PHPStorm)后问题解决了