且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Windows 10 Bash上安装webpack(在Windows上的Ubuntu上安装Bash).继续获取"webpack:找不到命令";

更新时间:2023-11-18 13:57:40

我认为这是Windows Bash shell的问题,但是我在Ubuntu VM上确认了同样的问题,并且做了更多的挖掘工作.以超级用户身份进行全局安装可以使其正常工作:

I thought this was an issue with the Windows Bash shell, but I confirmed the same problem on an Ubuntu VM and did some more digging. Installing globally as superuser got it working:

sudo npm install i -g --save-dev webpack webpack-dev-server