我正在学习 React.js,并且正在使用 Windows 8 操作系统。我已经导航到我的根文件夹
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
全球。
这总是有效并且对我有用。尝试下面的命令。
npm install -g webpack
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)