Skip to content

build from source with npm 11.4.1 causes warnings "Unknown cli config "--build-from-source". This will stop working in the next major version of npm" #1380

@FrankL-git

Description

@FrankL-git

The commandline

$ npm install better-sqlite3 --build-from-source --sqlite3=$(pwd)/src/sqlite-amalgamation-3500100

produces the following warnings:

npm warn Unknown cli config "--build-from-source". This will stop working in the next major version of npm.
npm warn Unknown cli config "--sqlite3". This will stop working in the next major version of npm.

This happens after I had installed npm 11.4.1. With the former version npm 11.2.0 the warnings didn't appear. The program better-sqlite3 itself is built and runs without problems.

Because I didn't find another way to build better-sqlite3 from source I'm afraid of this warning ...

Thank you for your excellent work!

Frank

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions