webpack command not working

前端 未结 7 1843
谎友^
谎友^ 2020-12-01 04:09

I am new to Node Js and Webpack. I tried to start a project with module-loaders.

Firstly, I installed nodeJs and NPM and created a new directory called tutoria

7条回答
  •  爱一瞬间的悲伤
    2020-12-01 04:45

    The quickest way, just to get this working is to use the web pack from another location, this will stop you having to install it globally or if npm run webpack fails.

    When you install webpack with npm it goes inside the "node_modules\.bin" folder of your project.

    in command prompt (as administrator)

    1. go to the location of the project where your webpack.config.js is located.
    2. in command prompt write the following
    "C:\Users\..\ProjectName\node_modules\.bin\webpack" --config webpack.config.vendor.js
    

提交回复
热议问题