question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I got a error on the postinstall

See original GitHub issue
npm WARN VVSEC_jacket@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! swiper@4.5.0 postinstall: `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[32mhttps://patreon.com/vladimirkharlampidi\u001b[0m\n')"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the swiper@4.5.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/o1.ftp/.npm/_logs/2019-04-25T16_54_04_903Z-debug.log

This is a (multiple allowed):

  • bug
  • enhancement
  • feature-discussion (RFC)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sghowericommented, Oct 5, 2019

Same — getting this exact same error when trying to install Swiper v4.5 or v5.0.4 when using Yarn v2.

1reaction
eklingencommented, Nov 26, 2019

Same here. Swiper cannot be added via Yarn v2, unless all postinstall scripts are ignored. Revelant error log:

# This file contains the result of Yarn building a package (swiper@npm:5.2.1)
# Script name: postinstall

[eval]:1
console.log('u001b[35mu001b[1mLove Swiper? Support Vladimir's work by donating or pledging on patreon:u001b[22mu001b[39mn > u001b[32mhttps://patreon.com/vladimirkharlampidiu001b[0mn')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: missing ) after argument list
    at new Script (vm.js:84:7)
    at createScript (vm.js:258:10)
    at Object.runInThisContext (vm.js:306:10)
    at Object.<anonymous> ([eval]-wrapper:9:26)
    at Module._compile (internal/modules/cjs/loader.js:1121:30)
    at evalScript (internal/process/execution.js:80:25)
    at internal/main/eval_string.js:23:3
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues in npm post-install script - Stack Overflow
There is some error in npm post-install script. My project is based on Linux but due to issues i have to run the...
Read more >
postinstall script fails when running `npm install` - Drupal
When running npm install, the install fails at the postinstall script stage with error: > barebones@1.0.0 postinstall ...
Read more >
PostInstall script not running on MacOS - Apple Developer
I have created a package installer for MacOS with "productbuild" command line ... It would be best to post the error messages from...
Read more >
Error "The post install script failed" occurs when trying to ...
Problem A: "INACTIVE_OWNER_OR_USER", the Update fails because the operation was performed with an inactive user. Problem B: Communities have not ...
Read more >
postinstall - npm
Deploy files from modules after npm install. Latest version: 0.8.0, last published: 3 months ago. Start using postinstall in your project by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found