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.

Postinstall script installation of tabtab fails

See original GitHub issue

This is a Bug Report

Description

When installing serverless the postinstall script throws when attempting to run tabtab install because tabtab does not exist. If I run the tamtam install command separately after installation, it succeeds. There seems to be a type of race condition with the creation of that binary and the execution of the postinstall script.

Repro steps:

  1. Run npm install serverless
  2. Observer error message on completion

Node.js version: 6.10.3 (also tried with 8.0.0) npm version: 5.0.3

Additional Data

  • Serverless Framework Version you’re using: 1.15.1
  • Operating System: MacOS 10.12.4
  • Stack Trace:
> serverless@1.15.1 postinstall /Users/rylewis/Documents/Dev/Repo/deploy/node_modules/serverless
> node ./scripts/postinstall.js

/bin/sh: ./node_modules/tabtab/bin/tabtab: No such file or directory
/bin/sh: ./node_modules/tabtab/bin/tabtab: No such file or directory
Unhandled rejection Error: Command failed: ./node_modules/tabtab/bin/tabtab install --name serverless --stdout
/bin/sh: ./node_modules/tabtab/bin/tabtab: No such file or directory

    at checkExecSyncError (child_process.js:481:13)
    at execSync (child_process.js:521:13)
    at serverless.init.then.e (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/serverless/scripts/postinstall.js:15:7)
    at tryCatcher (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:638:18)
    at Promise._settlePromise (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:582:21)
    at Promise._settlePromise0 (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/promise.js:638:18)
    at /Users/rylewis/Documents/Dev/Repo/deploy/node_modules/bluebird/js/release/nodeback.js:42:21
    at /Users/rylewis/Documents/Dev/Repo/deploy/node_modules/graceful-fs/graceful-fs.js:99:16
    at /Users/rylewis/Documents/Dev/Repo/deploy/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
pmuenscommented, Jun 9, 2017

@efenderbosch yes, @ryanmurakami is right 👍

We’ll do a patch release the upcoming hours. This should be fixed with https://github.com/serverless/serverless/pull/3763

1reaction
ryanmurakamicommented, Jun 9, 2017

@efenderbosch I think that’s related to #3757, not this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install failed at the nodemon@1.18.9 postinstall script
I've tried things like, deleting the node_modules folder and re-running the 'npm install' command again, the same error appears.
Read more >
PostInstall Script Fails when installed in Sandbox
My app sends an email to the installer via a PostInstall script, but whenever someone tries to install my app in a Sandbox,...
Read more >
What caused my Base Install to give the error "The post install ...
Navigate to the Community Themes tab. Review all the records to verify that at least one Community Theme has the "Default" checkbox selected....
Read more >
Salesforce CPQ Post Install Script error ...
'The Salesforce CPQ package installed correctly but the post-install script failed. Please review the error messages, make the necessary adjustments and go ...
Read more >
What caused my Base Install to give the error "The ... - Liaison
What caused my Base Install to give the error "The post install script failed"? · Navigate to the Community Themes tab. · Review...
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