Questions tagged «post-install»

5
找不到本地gulp(尝试运行:npm install gulp)
我创建了一个webapp-module-storage具有以下定义的模块(): package.json { "dependencies": { ... }, "devDependencies": { "gulp": "^3.9.1", ... }, "name": "webapp-module-storage", "scripts": { "postinstall": "gulp build", "test": "gulp test" } } 我以为我可以在安装以下模块时在另一个模块中使用我的模块: npm install github:myorg/webapp-module-storage#master 但是,当我安装模块时,出现此错误: 找不到本地口 尝试运行:npm install gulp 屏幕截图 我的理解是,它gulp与模块一起提供,因为我在其中声明了它,devDependencies但看起来我的npm postinstall脚本找不到gulp。 我想念什么吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.