【发布时间】:2018-05-26 09:48:43
【问题描述】:
所以我现在已经在 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 安装程序的知识吗?我没有办法尝试...
【问题讨论】:
标签: npm vue.js vue-material