所以我现在已经在一个 Vue.js 项目上工作了几次,我面临着一个我以前从未见过的问题。
尝试在另一台计算机上 git pull 项目,甚至将项目下载为 zip 文件,当它到时npm install
,vue-material 模块失败,整个事情无法运行。
它是这样的,使用 vie-material :
vue-material@1.0.0 postinstall C:\<my_things>\node_modules\vue-material
sh build/git-hooks/install.sh
然后我看到这个:
/usr/bin/bash: build/git-hooks/install.sh: No such file or directory
然后模块树显示在终端中,最后,我可以看到与 vue-material 相关的所有错误,使用以下语句:
Tell the author that this fails on your system:
sh build/git-hooks/install.sh
对了,我尝试新建一个Vue项目,并尝试在里面添加vue-material,没问题,所以和我的项目有关。
显然,/usr/bin/bash
不存在,因为我运行的是 Windows 10。
关于 npm 安装程序的任何知识?我没有办法尝试...