NPM Cannot read property '0' of undefined

前端 未结 11 773
你的背包
你的背包 2021-01-03 17:52

After updated Node (upto v8.6.0) and npm (upto v5.5.1) I cannot execute command npm install. After npm install I\'ve error message:

npm ERR! Can         


        
11条回答
  •  臣服心动
    2021-01-03 18:41

    Just download and install latest Yarn which is also a node package manager, developed by facebook, but has a much better dependency management. Also update your node cli (optional).

    And then, install your dependencies using yarn:

    yarn install
    

    or

    yarn // short version of yarn install
    

    No errors!

    You can continue to use npm after you have installed all dependencies with yarn or continue with yarn....it's your choice.

提交回复
热议问题