Skip to content

not able to create a project if npm is not installed #3393

Closed
@urkle

Description

@urkle

Version

3.3.0

Environment info

Environment Info:

  System:
    OS: macOS High Sierra 10.13.6
    CPU: (4) x64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
  Binaries:
    Node: 8.15.0 - /opt/local/bin/node
    Yarn: 1.12.3 - /opt/local/bin/yarn
    npm: Not Found
  Browsers:
    Chrome: 72.0.3626.81
    Firefox: 64.0.2
    Safari: 12.0.3
  npmGlobalPackages:
    @vue/cli: Not Found

(@vue/cli is installed globally via yarn.

Steps to reproduce

vue create myproject

What is expected?

it to work toward creating the project

What is actually happening?

 ERROR  Error: spawn npm ENOENT
Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:362:16)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
    at Function.Module.runMain (module.js:696:11)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions