Error: Cannot find module 'webpack'

后端 未结 17 2022
一整个雨季
一整个雨季 2020-12-22 16:49

I\'m just getting started with webpack and am having difficulty getting the multiple-entry-points sample to build. The webpack.config.js file in the example includes the li

17条回答
  •  一向
    一向 (楼主)
    2020-12-22 17:53

    Nothing suggested above worked for me (including the NODE_PATH variable). I created a sym link of "node_modules" from my local folder to the global AppData(eg below) and it worked like charm.

    C:\Users\mmoinuddin\AppData\Roaming\npm>mklink /D node_modules c:\essportreact\day1\node_modules
    symbolic link created for node_modules <<===>> c:\essportreact\day1\node_modules
    C:\essportreact\day1>webpack
    Hash: 2a82a67f90f9aa05ab4a
    Version: webpack 1.15.0
    

提交回复
热议问题