Closed deepaksood619 closed 5 years ago
And this is the log inside the log file
4384 silly saveTree ├── phaser-animated-tiles@2.0.2
4384 silly saveTree └─┬ phaser@3.15.1
4384 silly saveTree └── eventemitter3@3.1.0
4385 verbose stack Error: git-pre-commit@2.1.4 postinstall: `gulp hooks:install`
4385 verbose stack Exit status 1
4385 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
4385 verbose stack at EventEmitter.emit (events.js:182:13)
4385 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
4385 verbose stack at ChildProcess.emit (events.js:182:13)
4385 verbose stack at maybeClose (internal/child_process.js:962:16)
4385 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
4385 verbose stack From previous event:
4385 verbose stack at runAction (/usr/local/lib/node_modules/npm/lib/install/actions.js:74:13)
4385 verbose stack at actions.(anonymous function) (/usr/local/lib/node_modules/npm/lib/install/actions.js:50:17)
4385 verbose stack at execAction (/usr/local/lib/node_modules/npm/lib/install/actions.js:191:18)
4385 verbose stack From previous event:
4385 verbose stack at withInit (/usr/local/lib/node_modules/npm/lib/install/actions.js:159:15)
4385 verbose stack From previous event:
4385 verbose stack at withInit (/usr/local/lib/node_modules/npm/lib/install/actions.js:175:13)
4385 verbose stack at runSerial (/usr/local/lib/node_modules/npm/lib/install/actions.js:158:10)
4385 verbose stack at doSerial (/usr/local/lib/node_modules/npm/lib/install/actions.js:139:3)
4385 verbose stack at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
4385 verbose stack at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
4385 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
4385 verbose stack at withInit.nodeify (/usr/local/lib/node_modules/npm/lib/install/actions.js:163:5)
4385 verbose stack at runCallback (timers.js:694:18)
4385 verbose stack at tryOnImmediate (timers.js:665:5)
4386 verbose pkgid git-pre-commit@2.1.4
4387 verbose cwd /Users/deepaksood/Experiments/hero-engine
4388 verbose Darwin 18.0.0
4389 verbose argv "/usr/local/Cellar/node/10.11.0/bin/node" "/usr/local/bin/npm" "install"
4390 verbose node v10.11.0
4391 verbose npm v6.4.1
4392 error code ELIFECYCLE
4393 error errno 1
4394 error git-pre-commit@2.1.4 postinstall: `gulp hooks:install`
4394 error Exit status 1
4395 error Failed at the git-pre-commit@2.1.4 postinstall script.
4395 error This is probably not a problem with npm. There is likely additional logging output above.
4396 verbose exit [ 1, true ]
Sometimes npm can be tricky, I can get it to work on my end. Try removing the node_modules folder and running npm install
again as I know that solves a lot of issues.
@Jared-Sprague if you could, can you commit the package-lock.json
after running npm install
? As that can prevent some issues where people have different environments that don't work correctly
@SpyTec not able to npm install
after removed node_modules too. Maybe after package-lock.json
i will be able to do it.
@mwcz Is it best practice to commit package-lock.json?
@mwcz Yes, it should be committed to the repo.
This file is intended to be committed into source repositories...
@deepaksood619, could you post the output of npm version
?
@deepaksood619 Are you still experiencing this problem?
@mwcz After the current master pull npm install
is working fine. Thanks
This is the error i am facing while doing npm install in current master branch