Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM run build issue #261

Closed
Laukage opened this issue Jun 12, 2021 · 11 comments
Closed

NPM run build issue #261

Laukage opened this issue Jun 12, 2021 · 11 comments

Comments

@Laukage
Copy link

Laukage commented Jun 12, 2021

I can't get minetrack to run on this machine for some reason..
Not sure if its because it is arm based cpu?

Stack trace when running "NPM run build"
https://mclo.gs/XQNIlbI

@hugmanrique
Copy link
Contributor

According to parcel-bundler/source-map#33, the Rust rewrite of source-map should fix this issue. The fix should be included in Parcel 2.0.0-beta.3.1, but I'm not sure. Could you try pining parcel to that version in the package.json file, run npm i, and try again?

@Laukage
Copy link
Author

Laukage commented Jun 13, 2021

According to parcel-bundler/source-map#33, the Rust rewrite of source-map should fix this issue. The fix should be included in Parcel 2.0.0-beta.3.1, but I'm not sure. Could you try pining parcel to that version in the package.json file, run npm i, and try again?

I'm not sure what any of that means xD

@hugmanrique
Copy link
Contributor

My bad, replace beta.2 by beta.3.1 in this line

"parcel": "^2.0.0-beta.2"
, then run npm i and try building the client (as specified in the README file, i.e. as you did when filling this issue). Does the same error message appear?

@Laukage
Copy link
Author

Laukage commented Jun 14, 2021

i replaced "Beta.2" with "Beta.3.1.
Ran "NPM I"
then i ran "npm run build"

still getting somewhat the same error:
https://mclo.gs/dxdFEdz

@Laukage
Copy link
Author

Laukage commented Jun 15, 2021

My bad, replace beta.2 by beta.3.1 in this line

"parcel": "^2.0.0-beta.2"

, then run npm i and try building the client (as specified in the README file, i.e. as you did when filling this issue). Does the same error message appear?

Do you happen to know what my issue might be or have any troubleshooting steps i can take?

@hugmanrique
Copy link
Contributor

There's no need to ask for etas, we will reply when available. Anyways, we need the @parcel/source-map version. Can you post the output of npm view @parcel/source-map? If it returns 2.0.0-alpha.4.18, we will post an issue on the upstream project. Otherwise, you can try explicitly adding the latest version (mentioned before) of @parcel/source-map to your package.json file and run npm i again.

@Laukage
Copy link
Author

Laukage commented Jun 16, 2021

There's no need to ask for etas, we will reply when available. Anyways, we need the @parcel/source-map version. Can you post the output of npm view @parcel/source-map? If it returns 2.0.0-alpha.4.18, we will post an issue on the upstream project. Otherwise, you can try explicitly adding the latest version (mentioned before) of @parcel/source-map to your package.json file and run npm i again.

Sorry, i wasn't sure if you had seen it cuz it wasn't a reply - won't happen again.

I'm assuming this means i have version 2.0.0-rc.4
image

After manually adding "2.0.0-rc.4" to the package-lock.json it still results in the same error:
image

It says i need "SQLITE" module, but i already did install it through apt-get and npm install.

@hugmanrique
Copy link
Contributor

hugmanrique commented Jun 16, 2021

Alright, now we're getting a different error, that's good! (well, not 100% good). node-sqlite3 doesn't provide precompiled binaries for linux-arm64 (see TryGhost/node-sqlite3#1413). You will need to build from source which, by reading the linked issue, seems to require python 2. Once you have python installed, try npm i again.

@Laukage
Copy link
Author

Laukage commented Jun 16, 2021

Alright, now we're getting a different error, that's good! (well, not 100% good). node-sqlite3 doesn't provide precompiled binaries for linux-arm64 (see mapbox/node-sqlite3#1413). You will need to build from source which, by reading the linked issue, seems to require python 2. Once you have python installed, try npm i again.

That error has now gone away since i have Python2 installed, i get past "NPM I"
but now when i run "npm run build" i get this error...
image

@hugmanrique
Copy link
Contributor

Ah, the same error is back. Will open an issue there requesting an arm64 build soon. For now, I suggest running Minetrack on x86.

@Cryptkeeper
Copy link
Owner

Until there is a sqlite3 arm build available, you will need to run on x86-64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants