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.

Issue with `npm run build`

See original GitHub issue

installed the minetracker and was getting cannot GET/ tried npm run build but getting this error :

šŸšØ Build failed.

@parcel/core: Failed to resolve ā€˜uplot/dist/uPlot.min.cssā€™ from ā€˜./assets/css/ma in.cssā€™

/root/Minetrack/assets/css/main.css:1:9

1 | @import url(uplot/dist/uPlot.min.css); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2 | 3 | @import url(ā€¦/css/icons.css);

@parcel/resolver-default: Cannot load file ā€˜./uplot/dist/uPlot.min.cssā€™ in ā€˜./as sets/cssā€™. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! minetrack@5.6.0 build: eslint assets/js/*.js && parcel build assets/ht ml/index.html --dist-dir dist npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the minetrack@5.6.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-07-20T08_22_46_771Z-debug.log root@vmi624939:~/Minetrack# cd /root/.npm/_logs^C root@vmi624939:~/Minetrack# nano /root/.npm/_logs/2021-07-20T08_22_46_771Z-debug .log

The log:

0 info it worked if it ends with ok 1 verbose cli [ ā€˜/usr/local/bin/nodeā€™, ā€˜/usr/bin/npmā€™, ā€˜runā€™, ā€˜buildā€™ ] 2 info using npm@6.14.4 3 info using node@v14.17.3 4 verbose run-script [ ā€˜prebuildā€™, ā€˜buildā€™, ā€˜postbuildā€™ ] 5 info lifecycle minetrack@5.6.0~prebuild: minetrack@5.6.0 6 info lifecycle minetrack@5.6.0~build: minetrack@5.6.0 7 verbose lifecycle minetrack@5.6.0~build: unsafe-perm in lifecycle true 8 verwbose lifecycle minetrack@5.6.0~build: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/Minetrack/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 9 verbose lifecycle minetrack@5.6.0~build: CWD: /root/Minetrack 10 silly lifecycle minetrack@5.6.0~build: Args: [ 10 silly lifecycle ā€˜-cā€™, 10 silly lifecycle ā€˜eslint assets/js/*.js && parcel build assets/html/index.html --dist-dir distā€™ 10 silly lifecycle ] 11 silly lifecycle minetrack@5.6.0~build: Returned: code: 1 signal: null 12 info lifecycle minetrack@5.6.0~build: Failed to exec build script 13 verbose stack Error: minetrack@5.6.0 build: eslint assets/js/*.js && parcel build assets/html/index.html --dist-dir dist 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:375:28) 13 verbose stack at ChildProcess.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:375:28) 13 verbose stack at maybeClose (internal/child_process.js:1055:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) 14 verbose pkgid minetrack@5.6.0 15 verbose cwd /root/Minetrack 16 verbose Linux 5.4.0-62-generic 17 verbose argv ā€œ/usr/local/bin/nodeā€ ā€œ/usr/bin/npmā€ ā€œrunā€ ā€œbuildā€ 18 verbose node v14.17.3 19 verbose npm v6.14.4 20 error code ELIFECYCLE 21 error errno 1 22 error minetrack@5.6.0 build: eslint assets/js/*.js && parcel build assets/html/index.html --dist-dir dist 22 error Exit status 1 23 error Failed at the minetrack@5.6.0 build script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hugmanriquecommented, Oct 8, 2022

Now I notice that itā€™s trying to resolve the uplot/dist/uPlot.min.css path relative to the main.css file. Can you try changing line 1 of assets/css/main.css by

@import url(npm:uplot/dist/uPlot.min.css);

If this fixes it, feel free to PR the change šŸ˜ƒ It also wouldnā€™t hurt to try updating the parcel dependency to the latest version (2.7.0 as of now) ā€“ weā€™re still using an ancient beta.

1reaction
jopparicommented, Jul 20, 2021

even after installing uplot dependency by npm install uplot and running npm i its still giving the same error

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run build - fails to compile despite development version ...
I have a react app created with create-react-app , and npm run build is failing to compile a production build. It throws the...
Read more >
The command `npm run build` is not working since updating to ...
Hi there, i've updated the sources to OJS 3.2 and the command npm run build mentioned in README.md returns with errors. I followed...
Read more >
Problem with npm run build - Questions - n8n community
I download from git the project and I get an error when try running np, run build.
Read more >
Error when running npm run build : r/react - Reddit
I type npm run build and get the following message: "There might be a problem with the project dependency tree.
Read more >
Common errors | npm Docs
Some strange issues can be resolved by simply running npm cache clean and trying again. If you are having trouble with npm install...
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