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.

npm install error(postinstall.js)

See original GitHub issue
  • OS: ubuntu 18.04
  • PL version: nodejs v10.13.0
  • CCXT version: 1.18.586
  • method: npm install ccxt

I was using ccxt without any problem until today. Got some errors when I install ccxt in a new project today. It seems like some files is missing on npm, postinstall.js is likely.

error description is below

> ccxt@1.18.586 postinstall /home/user/project/node_modules/ccxt
> node build/postinstall.js

internal/modules/cjs/loader.js:582
    throw err;
    ^

Error: Cannot find module '/home/user/project/node_modules/ccxt/build/postinstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm WARN trades@1.0.0 No description
npm WARN trades@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ccxt@1.18.586 postinstall: `node build/postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ccxt@1.18.586 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/user/.npm/_logs/2019-05-29T04_10_53_356Z-debug.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
frosty00commented, May 29, 2019

@MRDNZ it works if you git clone and then npm install working for a fix for npm install ccxt now

2reactions
MRDNZcommented, May 29, 2019

I have the same issue with ccxt@1.18.587. Removed node_modules, cleared cache and reinstalled the package but keeps failing at the postinstall script.

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 - npm
Deploy files from modules after npm install. Latest version: 0.8.0, ... Start using postinstall in your project by running `npm i postinstall`.
Read more >
Npm install core js postinstall sh: 1: node: Permission denied
In one of my react js project on doing npm install i got the following error , eventhough I was running as root...
Read more >
Trouble performing npm install in Basic Gulp Housekeeping
Error : EACCES, mkdir '/home/vagrant/.npm/laravel-elixir/3.3.4' npm ERR! ... node npm-scripts/postinstall.js npm WARN engine get-stdin@5.0.0: wanted: ...
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