“Couldn't read dependencies” error with npm

前端 未结 17 2757
别跟我提以往
别跟我提以往 2020-12-23 14:59

I wanted to start a Node app and created a package.json file with a tutorial. Here is the json file:

{
    \"name\": \"Dashboard\",         


        
17条回答
  •  佛祖请我去吃肉
    2020-12-23 15:31

    Recently, I've started to get an error:

    npm ERR! install Couldn't read dependencies
    npm ERR! Error: Invalid version: "1.0"
    

    So, you may need to specify version of your package with 3 numbers, e.g. 1.0.0 instead of 1.0 if you get similar error.

提交回复
热议问题