Skip to content

Npx should be precise in package.json for Linux environnement #35

@MehdiBenbahri

Description

@MehdiBenbahri

Hi there,

I have deploy you boilerplate in a fresh ubuntu server. When i ran npm run build the console goes Brrrr, and an error occured (unexped token '('... ).

This error was here because in the package.json, in the "typecheck" script, tsc is called directly, to avoid other issue i suggest you should change this script from :

"typecheck": "tsc --noEmit -p client/tsconfig.json && tsc --noEmit -p server/tsconfig.json",
to
"typecheck": "npx tsc --noEmit -p client/tsconfig.json && npx tsc --noEmit -p server/tsconfig.json",

This change assures us that it will call tsc correctly and then build everything correctly. Don't forget by default that those who made Linux are not like us, they will always make something that works but without any ergonomics.

Hoping to help you, and thank you again for your boilerplate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions