npm package install from my github public repository produces error

cli
triaged
(jimmy) #1

What I Wanted to Do

I forked ngx-swiper-wrapper package and changed some css files in my forked source repository and install package from my repository.

What Happened Instead

Installation failed withe the following log.
25412 silly postinstall rollup@1.1.0

25413 info lifecycle rollup@1.1.0~postinstall: rollup@1.1.0

25414 silly postinstall rollup-plugin-node-resolve@4.0.0

25415 info lifecycle rollup-plugin-node-resolve@4.0.0~postinstall: rollup-plugin-node-resolve@4.0.0

25416 silly postinstall rollup-plugin-sourcemaps@0.4.2

25417 info lifecycle rollup-plugin-sourcemaps@0.4.2~postinstall: rollup-plugin-sourcemaps@0.4.2

25418 silly postinstall stylelint@9.9.0

25419 info lifecycle stylelint@9.9.0~postinstall: stylelint@9.9.0

25420 silly postinstall stylelint-config-standard@18.2.0

25421 info lifecycle stylelint-config-standard@18.2.0~postinstall: stylelint-config-standard@18.2.0

25422 silly postinstall stylelint-order@2.0.0

25423 info lifecycle stylelint-order@2.0.0~postinstall: stylelint-order@2.0.0

25424 silly postinstall swiper@4.4.6

25425 info lifecycle swiper@4.4.6~postinstall: swiper@4.4.6

25426 verbose lifecycle swiper@4.4.6~postinstall: unsafe-perm in lifecycle true

25427 verbose lifecycle swiper@4.4.6~postinstall: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp\git-clone-f1decaa6\node_modules\swiper\node_modules.bin;C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp\git-clone-f1decaa6\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\Administrator\AppData\Roaming\npm

25428 verbose lifecycle swiper@4.4.6~postinstall: CWD: C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp\git-clone-f1decaa6\node_modules\swiper

25429 silly lifecycle swiper@4.4.6~postinstall: Args: [ ‘/d /s /c’,

25429 silly lifecycle ‘node -e "console.log(’\u001b[35m\u001b[1mLove Swiper? Support Vladimir\‘s work by donating or pledging on patreon:\u001b[22m\u001b[39m\n > \u001b[32m[https://patreon.com/vladimirkharlampidi\u001b0m\n’)"’%22’) ]

25430 silly lifecycle swiper@4.4.6~postinstall: Returned: code: 0 signal: null

25431 silly postinstall tsickle@0.34.0

25432 info lifecycle tsickle@0.34.0~postinstall: tsickle@0.34.0

25433 silly postinstall tslint@5.12.1

25434 info lifecycle tslint@5.12.1~postinstall: tslint@5.12.1

25435 silly postinstall watch@1.0.2

25436 info lifecycle watch@1.0.2~postinstall: watch@1.0.2

25437 silly postinstall zone.js@0.8.27

25438 info lifecycle zone.js@0.8.27~postinstall: zone.js@0.8.27

25439 timing action:postinstall Completed in 801ms

25440 verbose unlock done using C:\Users\Administrator\AppData\Roaming\npm-cache_locks\staging-948be2eb2c190a75.lock for C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp\git-clone-f1decaa6\node_modules.staging

25441 timing stage:executeActions Completed in 45205ms

25442 timing stage:rollbackFailedOptional Completed in 1ms

25443 silly install runPostinstallTopLevelLifecycles

25444 silly build ngx-swiper-wrapper@7.2.0

25445 info linkStuff ngx-swiper-wrapper@7.2.0

25446 silly linkStuff ngx-swiper-wrapper@7.2.0 has C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp as its parent node_modules

25447 silly install ngx-swiper-wrapper@7.2.0

25448 info lifecycle ngx-swiper-wrapper@7.2.0~install: ngx-swiper-wrapper@7.2.0

25449 silly postinstall ngx-swiper-wrapper@7.2.0

25450 info lifecycle ngx-swiper-wrapper@7.2.0~postinstall: ngx-swiper-wrapper@7.2.0

25451 silly prepublish ngx-swiper-wrapper@7.2.0

25452 info lifecycle ngx-swiper-wrapper@7.2.0~prepublish: ngx-swiper-wrapper@7.2.0

25453 info lifecycle ngx-swiper-wrapper@7.2.0~prepublish: ignored because ignore-prepublish is set to true ngx-swiper-wrapper@7.2.0

25454 info lifecycle ngx-swiper-wrapper@7.2.0~prepare: ngx-swiper-wrapper@7.2.0

25455 verbose lifecycle ngx-swiper-wrapper@7.2.0~prepare: unsafe-perm in lifecycle true

25456 verbose lifecycle ngx-swiper-wrapper@7.2.0~prepare: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp\git-clone-f1decaa6\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\Administrator\AppData\Roaming\npm

25457 verbose lifecycle ngx-swiper-wrapper@7.2.0~prepare: CWD: C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp\git-clone-f1decaa6

25458 silly lifecycle ngx-swiper-wrapper@7.2.0~prepare: Args: [ ‘/d /s /c’,

25458 silly lifecycle ‘npm run clean && npm run build && npm run bundle’ ]

25459 silly lifecycle ngx-swiper-wrapper@7.2.0~prepare: Returned: code: 1 signal: null

25460 info lifecycle ngx-swiper-wrapper@7.2.0~prepare: Failed to exec prepare script

25461 verbose stack Error: ngx-swiper-wrapper@7.2.0 prepare: npm run clean && npm run build && npm run bundle

25461 verbose stack Exit status 1

25461 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)

25461 verbose stack at EventEmitter.emit (events.js:182:13)

25461 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)

25461 verbose stack at ChildProcess.emit (events.js:182:13)

25461 verbose stack at maybeClose (internal/child_process.js:962:16)

25461 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

25462 verbose pkgid ngx-swiper-wrapper@7.2.0

25463 verbose cwd C:\Users\Administrator\AppData\Roaming\npm-cache_cacache\tmp\git-clone-f1decaa6

25464 verbose Windows_NT 6.3.9600

25465 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “–dev” “–prod” “–ignore-prepublish” “–no-progress” “–no-save”

25466 verbose node v10.15.0

25467 verbose npm v6.4.1

25468 error code ELIFECYCLE

25469 error errno 1

25470 error ngx-swiper-wrapper@7.2.0 prepare: npm run clean &amp;&amp; npm run build &amp;&amp; npm run bundle

25470 error Exit status 1

25471 error Failed at the ngx-swiper-wrapper@7.2.0 prepare script.

25471 error This is probably not a problem with npm. There is likely additional logging output above.

25472 verbose exit [ 1, true ]

Reproduction Steps

Details

Platform Info

$ npm --versions
6.4.1
$ node -p process.platform
win32
0 Likes

(Kat Marchán) #2

The lifecycle script is failing for some reason. This is not the CLI’s fault, most likely. Please debug the build script, which may be failing after you forked it.

0 Likes

(system) closed #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

0 Likes