例如,如果在我的 package.json 中,我有这个:
"dependencies": {
"cacheman": "2.1.0" }
它可以工作,当我执行 npm install 时,它会触发 cacheman 中的构建脚本。
但是,如果我这样做:
"dependencies": {
"cacheman": "https://github.com/cayasso/cacheman.git" }
它行不通。npm install 不会触发 cacheman 的构建过程。
这是为什么?