strvcom/create-strv-app

Error: ENOENT: no such file or directory when creating new project

Closed this issue ยท 1 comments

Environment

  • node v9.8.0
  • npm v5.8.0
  • yarn v1.5.1

Steps to reproduce

After getting through all steps


yarn create v1.5.1
[1/4] ๐Ÿ”  Resolving packages...
[2/4] ๐Ÿšš  Fetching packages...
[3/4] ๐Ÿ”—  Linking dependencies...
[4/4] ๐Ÿ“ƒ  Building fresh packages...
success Installed "create-strv-app@1.2.1" with binaries:
      - create-strv-app
[STRV placeholder]
? Choose an application type: SPA
? Choose a template: default
? Enter your project name: projectname
? Sugar on top: styled-components

I expect no errors, but I got:

โœ– ERROR Failed with following error: Error: ENOENT: no such file or directory, open '/Users/username/STRV/projectname/package.json'

error An unexpected error occurred: "Command failed.
Exit code: 1
Command: /usr/local/bin/create-strv-app
Arguments: 
Directory: /Users/jakubkotula/STRV/test
Output:
".

Great catch, thanks!