Skip to content

npm install after vue init fails if git user name has double quotes #230

Closed
@sayanriju

Description

@sayanriju
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04 LTS
Release:        16.04
Codename:       xenial

$ node -v
v6.4.0

$ npm -v
3.10.3

$ vue --version
2.5.0

Command: vue init webpack-simple accepting the default options followed by npm i in the project directory.

Result: Fails with

npm ERR! file /tmp/foo/package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token 'i' at 4:22
npm ERR!   "author": "Sayan "Riju" Chakrabarti <[email protected]>",
npm ERR!                      ^
npm ERR! File: /tmp/foo/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.

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