我正在学习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识别为内部或外部命令,可操作程序或批处理文件
我遇到了同样的问题,无法解决。我遍历了每一行代码,却找不到我的错误。然后我意识到我将webpack安装在错误的文件夹中。我的错误是没有注意将Webpack安装到的文件夹。