package.json 在 npm install --save on gitlab 期间找不到
package.json not found during npm install --save on gitlab
当我尝试执行 gitlab.com 回购的 npm install --save
时出现此错误:
npm install--save git@gitlab.com:xxxxx\yyyyyy.git
npm ERR! Could not install from "gitlab.com:xxxxx\yyyyyy.git" as it does not contain a package.json file.
我尝试克隆然后到 link 目录:
git clone
npm link ../directory
一切正常。
有人有想法吗?
这样使用:npm install https://github.com/xxxxxx/yyyyyy.git --save
当我尝试执行 gitlab.com 回购的 npm install --save
时出现此错误:
npm install--save git@gitlab.com:xxxxx\yyyyyy.git
npm ERR! Could not install from "gitlab.com:xxxxx\yyyyyy.git" as it does not contain a package.json file.
我尝试克隆然后到 link 目录:
git clone
npm link ../directory
一切正常。
有人有想法吗?
这样使用:npm install https://github.com/xxxxxx/yyyyyy.git --save