自动发布脚本fe-deploy.sh出错
来源:12-3 发布流程及发布脚本的开发
梨好橙
2018-05-06
===========Enter mmall-fe============
./fe-deploy.sh: line 14: cd: RemenberMe: No such file or directory
===========Clear Git Dist============
===========git checkout master============
fatal: Not a git repository (or any of the parent directories): .git
===========git pull============
fatal: Not a git repository (or any of the parent directories): .git
===========npm install============
npm ERR! install Couldn't read dependencies
npm ERR! Linux 2.6.32-696.6.3.el6.x86_64
npm ERR! argv "/usr/local/node-v4.4.7-linux-x64/bin/node" "/usr/local/node-v4.4.7-linux-x64/bin/npm" "install" "--registry=https://registry.npm.taobao.org"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! path /developer/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! syscall open
npm ERR! package.json ENOENT: no such file or directory, open '/developer/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! Please include the following file with any support request:
npm ERR! /developer/npm-debug.log
===========npm run dist============
npm ERR! Linux 2.6.32-696.6.3.el6.x86_64
npm ERR! argv "/usr/local/node-v4.4.7-linux-x64/bin/node" "/usr/local/node-v4.4.7-linux-x64/bin/npm" "run" "dist"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! path /developer/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/developer/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /developer/npm-debug.log
===========Deploy Error============
1回答
-
Rosen
2018-05-06
没有cd进项目目录,检查你执行cd那一步的路径是什么
00
相似问题