执行./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

//img.mukewang.com/szimg/5b0cf6df0001014209230203.jpg

cd 长文件目录,会报错,一次进一个文件夹,就能找到文件,是什么原因?

0
1
Rosen
cd长目录的时候用tab键自动补全,看能进去么
2018-06-06
共1条回复

真实数据对接 从0开发前后端分离的企业级上线项目

【毕设项目精品】前端实战,对接真实服务端数据,开发完整项目

4262 学习 · 4113 问题

查看课程