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.

post install failing with typemoq

See original GitHub issue
> typemoq@2.0.1 postinstall node_modules/typemoq
> postinstall-build dist

sh: 1: postinstall-build: not found
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! typemoq@2.0.1 postinstall: `postinstall-build dist`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the typemoq@2.0.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

The above issue is occurring in our Jenkins build when doing npm install, does anyone know why this would be occurring?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ManfredLangecommented, Nov 11, 2018

@florinn wrote on Apr 13, 2018:

I’ve removed the dependency on postinstall-build. Please run ‘npm install https://github.com/florinn/typemoq’ and report back.

Tried this but now running into the next issue: "Error: Cannot find module ‘./node_modules/typemoq/build/postinstall.js’

NPM version is 6.4.1. Nodejs version is 11.1.0. OS is Ubuntu 18.04.

0reactions
jakawellcommented, Feb 18, 2020

@florinn This is not working for me either. Also running on AWS. I’m seeing the same error that @ManfredLange is when I try installing directly from GitHub like you recommended.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typemoq and Angular-cli don't work together - Stack Overflow
I think my problem came from some inconsistent setup while moving from systemjs to webpack. Karma had problems remapping coverage of Javascript back...
Read more >
typemoq - npm Package Health Analysis - Snyk
Learn more about typemoq: package health score, popularity, security, ... No known security issues ... Install the Snyk CLI and test your project...
Read more >
Typemock 7.4.0 errors on VS2012,Win8.1(My post is not passe)
issue1: all test methods do not work step1: install typemock step2: Open my solution on VS2012 step3: Write some test methods with typemock....
Read more >
typemoq - UNPKG
The CDN for typemoq. ... 4, * enable dynamic mocks to call failing invocation toString at error time #77 ... 109, * fix...
Read more >
With TypeScript 3, you are already missing out when mocking ...
This post assumes you already know that. ... The same goes for typemoq . ... you use the returns function and wrap it...
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