当我尝试运行
我的.ebignore文件看起来是这样的,并且适用于大部分文件。
如果我运行
我不知道为什么它突然想要开始添加,即使跳过了数十个node_modules文件。
编辑:我还尝试了各种格式,例如/node_modules、\node_modules、node_modules\、node_modules/**/、node_modules/等。
eb create
(Windows)时,我遇到了以下错误:ERROR: FileNotFoundError :: [WinError 3] The system cannot find the path specified: './website\\frontend\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\sass-graph\\node_modules\\yargs\\node_modules\\read-pkg-up\\node_modules\\read-pkg\\node_modules\\normalize-package-data\\node_modules\\is-builtin-module\\node_modules'
我的.ebignore文件看起来是这样的,并且适用于大部分文件。
# Project Files
webiste/static/
env/
.idea/
node_modules/
如果我运行
eb create --verbose
,我会得到以下输出:(在成功跳过我的env文件夹后)INFO: -skipping: ./website\frontend\node_modules\gulp-sass\node_modules\node-sass\node_modules\sass-graph\node_modules\yargs\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\normalize-package-data\node_modules\hosted-git-info\LICENSE
INFO: -skipping: ./website\frontend\node_modules\gulp-sass\node_modules\node-sass\node_modules\sass-graph\node_modules\yargs\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\normalize-package-data\node_modules\hosted-git-info\package.json
INFO: -skipping: ./website\frontend\node_modules\gulp-sass\node_modules\node-sass\node_modules\sass-graph\node_modules\yargs\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\normalize-package-data\node_modules\hosted-git-info\README.md
INFO: -skipping: ./website\frontend\node_modules\gulp-sass\node_modules\node-sass\node_modules\sass-graph\node_modules\yargs\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\normalize-package-data\node_modules\is-builtin-module\index.js
INFO: -skipping: ./website\frontend\node_modules\gulp-sass\node_modules\node-sass\node_modules\sass-graph\node_modules\yargs\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\normalize-package-data\node_modules\is-builtin-module\license
INFO: +adding: ./website\frontend\node_modules\gulp-sass\node_modules\node-sass\node_modules\sass-graph\node_modules\yargs\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\normalize-package-data\node_modules\is-builtin-module/
INFO: +adding: ./website\frontend\node_modules\gulp-sass\node_modules\node-sass\node_modules\sass-graph\node_modules\yargs\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\normalize-package-data\node_modules\is-builtin-module\node_modules
INFO: Traceback (most recent call last):
File "C:\Python34\lib\site-packages\ebcli\core\ebrun.py", line 45, in run_app
app.run()
File "C:\Python34\lib\site-packages\cement\core\foundation.py", line 797, in run
return_val = self.controller._dispatch()
File "C:\Python34\lib\site-packages\cement\core\controller.py", line 472, in _dispatch
return func()
File "C:\Python34\lib\site-packages\cement\core\controller.py", line 478, in _dispatch
return func()
File "C:\Python34\lib\site-packages\ebcli\core\abstractcontroller.py", line 60, in default
self.do_command()
File "C:\Python34\lib\site-packages\ebcli\controllers\create.py", line 265, in do_command
source=source)
File "C:\Python34\lib\site-packages\ebcli\operations\createops.py", line 75, in make_new_env
build_config=build_config)
File "C:\Python34\lib\site-packages\ebcli\operations\commonops.py", line 867, in create_app_version
version_label, source_control, staged=staged)
File "C:\Python34\lib\site-packages\ebcli\operations\commonops.py", line 1054, in _zip_up_project
fileoperations.zip_up_project(file_path, ignore_list=ignore_files)
File "C:\Python34\lib\site-packages\ebcli\core\fileoperations.py", line 436, in zip_up_project
zip_up_folder('./', location, ignore_list=ignore_list)
File "C:\Python34\lib\site-packages\ebcli\core\fileoperations.py", line 423, in zip_up_folder
_zipdir('./', zipf, ignore_list=ignore_list)
File "C:\Python34\lib\site-packages\ebcli\core\fileoperations.py", line 493, in _zipdir
zipf.write(cur_file)
File "C:\Python34\lib\zipfile.py", line 1322, in write
st = os.stat(filename)
FileNotFoundError: [WinError 3] The system cannot find the path specified: './website\\frontend\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\sass-graph\\node_modules\\yargs\\node_modules\\read-pkg-up\\node_modules\\read-pkg\\node_modules\\normalize-package-data\\node_modules\\is-builtin-module\\node_modules'
我不知道为什么它突然想要开始添加,即使跳过了数十个node_modules文件。
编辑:我还尝试了各种格式,例如/node_modules、\node_modules、node_modules\、node_modules/**/、node_modules/等。
node_modules
在末尾生效的解释是什么,与在开头进行相比有何不同?它可以工作,只是想知道为什么。 - Evandro Pomatti