Retrieving Node.js Module from GitHub - Error: ENOENT, open package/package.json'

前端 未结 3 1270
星月不相逢
星月不相逢 2021-01-17 11:24

To my understanding, the \'npm\' knows about git, so i can use it to retrieve Node.js modules from github. So, I have created Node.js module and hosted it at github. When I

3条回答
  •  渐次进展
    2021-01-17 11:39

    You may be using a .zip file. NPM doesn't support it and it may throw an error. Here is what you can use: https://npmjs.org/doc/install.html#DESCRIPTION

提交回复
热议问题