Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

try to init shopify app dev project but keeps failing at node_sqlite3 installation

Solved

try to init shopify app dev project but keeps failing at node_sqlite3 installation

blade_fang
Shopify Partner
3 1 2

Welcome. Let’s get started by naming your app. You can change it later.
✔ Your app's name? · blade-fbt-2
✔ Which template would you like to use? · node
✔ Downloaded template from https://github.com/Shopify/shopify-app-template-node
✔ App initialized
✔ Liquid parsed
✔ Updated package.json
❯ Installing dependencies with npm
✔ Installed dependencies in /
✖ Command failed with exit code 6: npm install
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm ERR! code 6
npm ERR! path /private/var/folders/q0/jnhdm_xx5f93h9dn8wgjllsw0000gp/T/957f2a072eb8ea6f438e937c33ae22e8/app/web/node_modules/sqlite3
npm ERR! command failed
npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
npm ERR! node-pre-gyp info using node@18.12.1 | darwin | x64
npm ERR! node-pre-gyp info check checked for "/private/var/folders/q0/jnhdm_xx5f93h9dn8wgjllsw0000gp/T/957f2a072eb8ea6f438e937c33ae2…
npm ERR! node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.4/napi-v6-darwin-unknown-x64.tar.gz
npm ERR! node-pre-gyp info install unpacking napi-v6-darwin-unknown-x64/node_sqlite3.node
npm ERR! node-pre-gyp ERR! Completion callback never invoked!
npm ERR! node-pre-gyp ERR! System Darwin 22.1.0
npm ERR! node-pre-gyp ERR! command "/usr/local/Cellar/node@18/18.12.1/bin/node" "/private/var/folders/q0/jnhdm_xx5f93h9dn8wgjllsw000…
npm ERR! node-pre-gyp ERR! cwd /private/var/folders/q0/jnhdm_xx5f93h9dn8wgjllsw0000gp/T/957f2a072eb8ea6f438e937c33ae22e8/app/web/nod…
npm ERR! node-pre-gyp ERR! node -v v18.12.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/blade/.npm/_logs/2022-12-31T13_52_14_797Z-debug-0.log
◼ Installing dependencies in /web/frontend/
◼ Clean up
◼ Initializing a Git repository...

── external error ──────────────────────────────────────────────────────────────────────────

Error coming from `npm install`

Command failed with exit code 6: npm install
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm ERR! code 6
npm ERR! path /private/var/folders/q0/jnhdm_xx5f93h9dn8wgjllsw0000gp/T/957f2a072eb8ea6f438e937c33ae22e8/app/web/node_modules/sqlite3
npm ERR! command failed
npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
npm ERR! node-pre-gyp info using node@18.12.1 | darwin | x64
npm ERR! node-pre-gyp info check checked for "/private/var/folders/q0/jnhdm_xx5f93h9dn8wgjllsw0000gp/T/957f2a072eb8ea6f438e937c33ae22e8/app
/web/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-x64/node_sqlite3.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.4/napi-v6-darwin-unknown-x64.tar.gz
npm ERR! node-pre-gyp info install unpacking napi-v6-darwin-unknown-x64/node_sqlite3.node
npm ERR! node-pre-gyp ERR! Completion callback never invoked!
npm ERR! node-pre-gyp ERR! System Darwin 22.1.0
npm ERR! node-pre-gyp ERR! command "/usr/local/Cellar/node@18/18.12.1/bin/node"
"/private/var/folders/q0/jnhdm_xx5f93h9dn8wgjllsw0000gp/T/957f2a072eb8ea6f438e937c33ae22e8/app/web/node_modules/.bin/node-pre-gyp"
"install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd
/private/var/folders/q0/jnhdm_xx5f93h9dn8wgjllsw0000gp/T/957f2a072eb8ea6f438e937c33ae22e8/app/web/node_modules/sqlite3
npm ERR! node-pre-gyp ERR! node -v v18.12.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/blade/.npm/_logs/2022-12-31T13_52_14_797Z-debug-0.log

────────────────────────────────────────────────────────────────────────────────────────────

npm ERR! code 1
npm ERR! path /Users/blade/Projects/blade-fbt
npm ERR! command failed
npm ERR! command sh -c -- create-app

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/blade/.npm/_logs/2022-12-31T13_51_13_906Z-debug-0.log

Accepted Solution (1)

blade_fang
Shopify Partner
3 1 2

This is an accepted solution.

I tried to reinstall sqlite3 by 7pm install sqlite3, and it said:

npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated node-pre-gyp@0.17.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

 

I noticed the deprecated node-pre-gyp@0.17.0 may cause problem, and re-install it by:

npm uninstall node-pre-gyp --save

npm install @mapbox/node-pre-gyp --save

 

after that, init again using :

npm init @Shopify/app@latest

 

It works !!!!

 

 

View solution in original post

Replies 2 (2)

blade_fang
Shopify Partner
3 1 2

I'm using iMac (Intel Core i5) with macOS Ventura 13.0.1

blade_fang
Shopify Partner
3 1 2

This is an accepted solution.

I tried to reinstall sqlite3 by 7pm install sqlite3, and it said:

npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated node-pre-gyp@0.17.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

 

I noticed the deprecated node-pre-gyp@0.17.0 may cause problem, and re-install it by:

npm uninstall node-pre-gyp --save

npm install @mapbox/node-pre-gyp --save

 

after that, init again using :

npm init @Shopify/app@latest

 

It works !!!!