Getting Error while trying to initialize shopify app with their command npm init @shopify/app@latest
Getting following error
- npm init @shopify/app@latest
(node:80742) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
Welcome. Let’s get started by naming your app project. You can change it later.
? Your project name?
✔ sustainable-supply-app
? Get started building your app:
✔ Start with Remix (recommended)
? For your Remix template, which language do you want?
✔ JavaScript
── external error ─────────────────────────────────────────────────────────────────────────────────────────────
Error coming from `npm install`
Command failed with exit code 1: npm install
(node:80870) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate
verification.
(Use `node --trace-warnings ...` to show where the warning was created)
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer
maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer
maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup '/private/var/folders/25/4j3t9s7n6xx_t3qftrctv6200000gq/T/4918339d29357aa8a757c14cbe37a34a/app/node_modules/@shopify',
npm WARN cleanup [Error: EINVAL: invalid argument, rmdir
'/private/var/folders/25/4j3t9s7n6xx_t3qftrctv6200000gq/T/4918339d29357aa8a757c14cbe37a34a/app/node_modules/@shopify/app/node_modules/@shopify/polaris'] {
npm WARN cleanup errno: -22,
npm WARN cleanup code: 'EINVAL',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path:
'/private/var/folders/25/4j3t9s7n6xx_t3qftrctv6200000gq/T/4918339d29357aa8a757c14cbe37a34a/app/node_modules/@shopify/app/node_modules/@shopify/polaris'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path /private/var/folders/25/4j3t9s7n6xx_t3qftrctv6200000gq/T/4918339d29357aa8a757c14cbe37a34a/app/node_modules/@parcel/watcher
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.10.13 found at "/Users/vimal.negi/miniconda3/bin/python3"
npm ERR! gyp info spawn /Users/vimal.negi/miniconda3/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/vimal.negi/.nvm/versions/node/v18.19.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args
'/private/var/folders/25/4j3t9s7n6xx_t3qftrctv6200000gq/T/4918339d29357aa8a757c14cbe37a34a/app/node_modules/@parcel/watcher/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/vimal.negi/.nvm/versions/node/v18.19.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/vimal.negi/Library/Caches/node-gyp/18.19.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/vimal.negi/Library/Caches/node-gyp/18.19.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/vimal.negi/.nvm/versions/node/v18.19.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/vimal.negi/Library/Caches/node-gyp/18.19.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args
'-Dmodule_root_dir=/private/var/folders/25/4j3t9s7n6xx_t3qftrctv6200000gq/T/4918339d29357aa8a757c14cbe37a34a/app/node_modules/@parcel/watcher',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: binding.gyp not found (cwd: /private/var/folders/25/4j3t9s7n6xx_t3qftrctv6200000gq/T/4918339d29357aa8a757c14cbe37a34a/app/node_modules/@parcel/watcher)
while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/Users/vimal.negi/.nvm/versions/node/v18.19.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm ERR! gyp ERR! System Darwin 22.5.0
npm ERR! gyp ERR! command "/Users/vimal.negi/.nvm/versions/node/v18.19.0/bin/node"
"/Users/vimal.negi/.nvm/versions/node/v18.19.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /private/var/folders/25/4j3t9s7n6xx_t3qftrctv6200000gq/T/4918339d29357aa8a757c14cbe37a34a/app/node_modules/@parcel/watcher
npm ERR! gyp ERR! node -v v18.19.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /Users/vimal.negi/.npm/_logs/2024-02-08T05_58_35_264Z-debug-0.log
───────────────────────────────────────────────────────────────────────────────────────────────────────────────
npm ERR! code 1
npm ERR! path /Users/vimal.negi/Documents/cmp/sdk
npm ERR! command failed
npm ERR! command sh -c create-app
npm ERR! A complete log of this run can be found in: /Users/vimal.negi/.npm/_logs/2024-02-08T05_58_27_990Z-debug-0.log
Following are the versions
(base) ➜ ~ node -v
v18.19.0
(base) ➜ ~ npm -v
10.4.0
(base) ➜ ~ python --version
Python 3.9.18
I have tried ignore-script which was mentioning in one of the thread, but doesn't seems working
Trying to create shopify plugin
There is an open issue in GitHub https://github.com/Shopify/shopify-app-template-remix/issues/543