Thursday, 4 May 2017

Npm fail postinstall script './bin/setup-git-hooks; gulp lodash' code ELIFECYCLE

I'm trying to deploy an angular project , and while running npm install , I'm gettin an Error : with code ELIFECYCLE

 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0
 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup
 SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1:
 wanted {"os":"darwin","arch":"any"} (current:
 {"os":"win32","arch":"x64"}) npm WARN angular-module@1.0.6 No
 repository field. npm WARN angular-module@1.0.6 No license field. npm
 ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program
 Files\\nodejs\\node.exe" "C:\\Program
 Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR!
 node v6.10.2 npm ERR! npm  v3.10.10 npm ERR! code ELIFECYCLE npm ERR!
 angular-module@1.0.6 postinstall: `./bin/setup-git-hooks; gulp lodash`
 npm ERR! Exit status 1

I'would like to mentino that I'added a post install task in my package.json file

{
  "name": "angular-module",
  "version": "1.0.6",
  "scripts": {
    "test": "gulp test",
    "postinstall": "./bin/setup-git-hooks; gulp lodash"
  },

Any one have an idea?



via wikimix

No comments:

Post a Comment