Create package.json from package-lock.json

后端 未结 4 1343
星月不相逢
星月不相逢 2021-02-05 01:02

I downloaded a theme and it has a package-lock.json file but no package.json file. Is there a way I can generate the package.json from the package-lock.json file. How do I insta

4条回答
  •  野的像风
    2021-02-05 01:35

    Install the latest npm with npm install -g npm

    Run npm init and respond to the questions.

    The above command will generate a package.json and include the existing packages listed in package-lock.json

提交回复
热议问题