执行./fe-deploy.sh mmall-fe 报错
来源:12-3 发布流程及发布脚本的开发
慕的地2839094
2018-05-29
报错如下:
请输入要发布的项目!
[root@xxx developer]# ./fe-deploy.sh mmall-fe
==============Enter mmall-fe==============
./fe-deploy.sh: line 19: cd: /developer/git-repository/mmall-fe: 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 3.10.0-514.26.2.el7.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.tapbao.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 3.10.0-514.26.2.el7.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回答
-
慕的地2839094
提问者
2018-05-29
cd 长文件目录,会报错,一次进一个文件夹,就能找到文件,是什么原因?
012018-06-06
相似问题