Ecommerce Shopify WordPress Discussion

Getting Error Error while initializing shopify app from CLI – npm init @shopify/app@latest

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/plugin-proposal-class-properties@7.18.6: 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/plugin-proposal-object-rest-spread@7.20.7: 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 node-gyp@10.0.1 npm ERR! gyp info using node@18.19.0 | 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
It seems like you're encountering an error while trying to initialize a Shopify app using the npm init @shopify/app@latest command. This command is used to scaffold a new Shopify app project using the Shopify CLI. Here are a few troubleshooting steps you can try to resolve the issue: Update npm: Ensure that your npm version is up to date. You're currently using npm version 10.4.0, which is quite old. You can update npm by running: npm install -g npm@latest Retry Initialization: After updating npm, try running the initialization command again: npm init @shopify/app@latest Check Internet Connection: Ensure that you have a stable internet connection. Sometimes network issues can cause errors during package installation. Clear npm Cache: Clearing the npm cache might resolve any potential caching issues: npm cache clean --force Use a Node Version Manager (NVM): Consider using a Node Version Manager like nvm to manage your Node.js versions. This can help ensure compatibility and consistency across projects. Check for Proxy Settings: If you're behind a proxy, ensure that your npm configuration is correctly set up to use the proxy. You may need to configure npm to use the proxy by setting the http_proxy and https_proxy environment variables. If none of the above steps resolve the issue, please provide more details about the specific error message you're encountering. The error message should provide more insight into the root cause of the problem, which can help in troubleshooting further.

February 13, 2024

There is an open issue in GitHub https://github.com/Shopify/shopify-app-template-remix/issues/543

February 13, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.