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.

crash on npm install current master 48df5b5

See original GitHub issue

Describe the bug

get the master branch at the git hash above. then npm install and it crashes

Environment (please complete the following information):

  • Bitcoin Core / Node Version [e.g. 0.16.3] 0.19.1
  • NodeJS Version [e.g. 9.x] v14.19.1
  • Browser [e.g. chrome, safari]
  • Code Version / Commit 48df5b5
  • Installation Method [e.g. “npm” or “source code”] npm install

Configuration file content Same content as v3.3.0 release.

To Reproduce

Steps to reproduce the behavior:

  1. get the master branch at 48df5b5
  2. npm install
  3. See error

Screenshots or Log Output

npm WARN tar ENOENT: no such file or directory, open ‘/home/linuxguy/code/btc-rpc-explorer/node_modules/.staging/ms-3d309320/index.js’ npm WARN tar ENOENT: no such file or directory, open ‘/home/linuxguy/code/btc-rpc-explorer/node_modules/.staging/node-abi-8eb61ad1/LICENSE’ npm WARN tar ENOENT: no such file or directory, open ‘/home/linuxguy/code/btc-rpc-explorer/node_modules/.staging/ms-3d309320/package.json’ npm WARN tar ENOENT: no such file or directory, open ‘/home/linuxguy/code/btc-rpc-explorer/node_modules/.staging/node-abi-8eb61ad1/index.js’

Additional context

npm start Then you get this output: npm start

btc-rpc-explorer@3.3.0 start /home/linuxguy/code/btc-rpc-explorer node ./bin/www

btcexp:app Searching for config files… +0ms btcexp:app Config file found at /home/linuxguy/.config/btc-rpc-explorer.env, loading… +2ms btcexp:app Config file not found at /etc/btc-rpc-explorer/.env, continuing… +1ms btcexp:app Config file not found at /home/linuxguy/code/btc-rpc-explorer/.env, continuing… +0ms internal/modules/cjs/loader.js:905 throw err; ^

Error: Cannot find module ‘@janoside/app-utils’ Require stack:

  • /home/linuxguy/code/btc-rpc-explorer/app.js
  • /home/linuxguy/code/btc-rpc-explorer/bin/www at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:101:18) at Object.<anonymous> (/home/linuxguy/code/btc-rpc-explorer/app.js:99:18) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:101:18) at Object.<anonymous> (/home/linuxguy/code/btc-rpc-explorer/bin/www:6:13) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) { code: ‘MODULE_NOT_FOUND’, requireStack: [ ‘/home/linuxguy/code/btc-rpc-explorer/app.js’, ‘/home/linuxguy/code/btc-rpc-explorer/bin/www’ ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! btc-rpc-explorer@3.3.0 start: node ./bin/www npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the btc-rpc-explorer@3.3.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pointbizcommented, May 14, 2022

Based on this source it looks like npm v7 is now required for the lockfileversion2 https://www.abrahamberg.com/blog/npm-package-json-lock-version-1-or-2/

This requirement could be added to the README

0reactions
pointbizcommented, May 13, 2022

Yes it was because I was using npm v6 it now builds on npm v8. Now I get the issue #443

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install hangs - node.js - Stack Overflow
I made multiple iterations rerunning npm install --verbose , deleting the file at latest log path shown before a hang up. Finally installation...
Read more >
Common errors | npm Docs
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >
npm install -g npm@7.6.1 with verbose loglevel crashes #3207
npm install -g npm@7.5.0 should work. Current Behavior. Sending build context to Docker daemon 2.048kB Step 1/3 : FROM node:15.7.0 ---> ...
Read more >
How to Install npm, Master npm Commands & Use Packages
Node Package Manager Guide: Install npm + Use Commands & Modules ... For now, it's important to get the current global location: $...
Read more >
NPM Crash Course - YouTube
This is a beginner-friendly crash course and tutorial on NPM or the Node Package Manager. Some of what you will learn..... Install and...
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