Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Running npm init @shopify/app@latest gives an error #3385

Closed
2 tasks done
JimChristian21 opened this issue Feb 6, 2024 · 1 comment
Closed
2 tasks done

[Bug]: Running npm init @shopify/app@latest gives an error #3385

JimChristian21 opened this issue Feb 6, 2024 · 1 comment
Assignees
Labels
Type: Bug Something isn't working

Comments

@JimChristian21
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

App

Expected behavior

It should install/setup the app correctly

Actual behavior

Gives an issue during installation

Verbose output

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

Error coming from `npm install`

Command failed with exit code 243: npm install

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

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

2024-02-06T19:52:25.010Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /home/rieves/Documents/development/shopify

2024-02-06T19:52:25.462Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 438 ms
With response headers:
 - x-request-id: 7e281af6-015c-4045-b2c5-8538328b89ef
    
2024-02-06T19:52:25.465Z: Analytics event sent: {
  "command": "create-app",
  "time_start": 1707248886250,
  "time_end": 1707249145000,
  "total_time": 258750,
  "success": false,
  "cli_version": "3.55.4",
  "ruby_version": "",
  "node_version": "18.18.0",
  "is_employee": false,
  "uname": "linux amd64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/create-app\"]",
  "env_shell": "bash",
  "env_device_id": "c9fda2680df0e47c8e88eacf0db9c225f1448353",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "cmd_all_timing_network_ms": 225757,
  "cmd_all_timing_prompts_ms": 32720,
  "cmd_all_launcher": "npm",
  "cmd_all_plugin": "@shopify/create-app",
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "bde78044e3e2d1e9655325f311ddf6f6d5319237",
  "cmd_create_app_template": "remix",
  "cmd_create_app_template_url": "https://github.com/Shopify/shopify-app-template-remix#javascript",
  "cmd_all_timing_active_ms": 272,
  "cmd_all_exit": "expected_error",
  "args": "--verbose",
  "error_message": "Command failed with exit code 243: npm install",
  "env_plugin_installed_all": "[\"@shopify/create-app\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-02-06T19:52:25.479Z: Reporting handled error to Bugsnag: Command failed with exit code 243: npm install
npm ERR! code 1
npm ERR! path /home/rieves/Documents/development/shopify
npm ERR! command failed
npm ERR! command sh -c create-app --verbose

Reproduction steps

  1. install app using npm init @shopify/app@latest
  2. choose template
  3. WIll cause during installation

Screenshot from 2024-02-07 03-43-20

Operating System

Ubuntu Linux

Shopify CLI version (check your project's package.json if you're not sure)

Not yet installed

Shell

bash

Node version (run node -v if you're not sure)

18.18.0

What language and version are you using in your application?

10.4.0

@JimChristian21 JimChristian21 added the Type: Bug Something isn't working label Feb 6, 2024
@shauns
Copy link
Contributor

shauns commented Feb 7, 2024

Hi @JimChristian21 -- this looks to be most likely due to access permissions on your filesystem and something specific to npm rather than the CLI (the CLI is running npm install for you at the conclusion of creating a new app). Some useful threads:

@shauns shauns closed this as completed Feb 7, 2024
@shauns shauns self-assigned this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants