Issue with `npm run build`
See original GitHub issueinstalled 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:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Now I notice that itās trying to resolve the
uplot/dist/uPlot.min.css
path relative to themain.css
file. Can you try changing line 1 ofassets/css/main.css
byIf 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.even after installing uplot dependency by
npm install uplot
and runningnpm i
its still giving the same error