Under Cygwin Windows-style paths are used
See original GitHub issueAppended is the output of npm run prepare -- epub.js
. Notice the fatal: pathspec 'node_modules\epub.js\package.json' did not match any files
. The slashes are windows-style, while the cygwin git expects posix paths.
I’ll submit a PR if I figure out a solution. Help debugging would be appreciated.
npm run prepare -- epub.js
> iko-app@1.0.0 prepare E:\ivairus\cygwin\home\Dominykas\darbalaukiai\__kontraktai\iko-app
> patch-package "epub.js"
☑ Creating temporary folder
☑ Building clean node_modules with npm
☑ Diffing your files with clean files
fatal: pathspec 'node_modules\epub.js\package.json' did not match any files
{ status: 128,
signal: null,
output:
[ null,
<Buffer >,
<Buffer 66 61 74 61 6c 3a 20 70 61 74 68 73 70 65 63 20 27 6e 6f 64 65 5f 6d 6f 64 75 6c 65 73 5c 65 70 75 62 2e 6a 73 5c 70 61 63 6b 61 67 65 2e 6a 73 6f 6e ... > ],
pid: 8160,
stdout: <Buffer >,
stderr: <Buffer 66 61 74 61 6c 3a 20 70 61 74 68 73 70 65 63 20 27 6e 6f 64 65 5f 6d 6f 64 75 6c 65 73 5c 65 70 75 62 2e 6a 73 5c 70 61 63 6b 61 67 65 2e 6a 73 6f 6e ... >,
envPairs:
[ 'ALLUSERSPROFILE=C:\\ProgramData',
'APPDATA=C:\\Users\\Dominykas\\AppData\\Roaming',
'BROWSER=cygstart',
'COMMONPROGRAMFILES=C:\\Program Files\\Common Files',
'CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files',
'CommonProgramW6432=C:\\Program Files\\Common Files',
'COMPUTERNAME=HP8540P',
'COMSPEC=C:\\WINDOWS\\system32\\cmd.exe',
'C_EM64T_REDIST11=C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\',
'HOME=C:\\Users\\Dominykas',
'HOMEDRIVE=C:',
'HOMEPATH=\\Users\\Dominykas',
'INIT_CWD=E:\\ivairus\\cygwin\\home\\Dominykas\\darbalaukiai\\__kontraktai\\iko-app',
'JDK_BIN=C:\\Program Files\\Java\\jdk1.8.0_112\\bin',
'JRE_BIN=C:\\Program Files\\Java\\jre1.8.0_112\\bin',
'LANG=C.UTF-8',
'LOCALAPPDATA=C:\\Users\\Dominykas\\AppData\\Local',
'LOGONSERVER=\\\\HP8540P',
'LS_COLORS=no=00;38;5;60:fi=00:rs=0:di=01;38;5;104:ln=01;38;5;111:mh=00:pi=48;5;230;38;5;136;01:so=48;5;230;38;5;136;01:bd=;4;230;38;5;142;01:cd=;1;230;38;5;94;01:or=38;5;009;48;5;052:ex=0;38;5;2:*.clj=01;38;5;72:*.cljs=01;38;5;108:*.sh=01;38;5;95:*.html=01;38;5;36:*.swp=00;38;5;243:*.swo=00;38;5;243:*.aac=00;38;5;61:*.au=00;38;5;61:*.flac=00;38;5;61:*.mid=00;38;5;61:*.midi=00;38;5;61:*.mka=00;38;5;61:*.mp3=00;38;5;61:*.ogg=00;38;5;61:*.wav=00;38;5;61:*.m4a=00;38;5;61:*.mov=01;38;5;61:*.mpg=01;38;5;61:*.mpeg=01;38;5;61:*.m2v=01;38;5;61:*.mkv=01;38;5;61:*.ogm=01;38;5;61:*.mp4=01;38;5;61:*.m4v=01;38;5;61:*.mp4v=01;38;5;61:*.vob=01;38;5;61:*.qt=01;38;5;61:*.nuv=01;38;5;61:*.wmv=01;38;5;61:*.asf=01;38;5;61:*.rm=01;38;5;61:*.rmvb=01;38;5;61:*.flc=01;38;5;61:*.avi=01;38;5;61:*.fli=01;38;5;61:*.flv=01;38;5;61:*.gl=01;38;5;61:*.m2ts=01;38;5;61:*.divx=01;38;5;61:*.webm=01;38;5;61:*.jpg=00;38;5;61:*.JPG=00;38;5;61:*.jpeg=00;38;5;61:*.gif=00;38;5;61:*.bmp=00;38;5;61:*.pbm=00;38;5;61:*.pgm=00;38;5;61:*.ppm=00;38;5;61:*.tga=00;38;5;61:*.xbm=00;38;5;61:*.xpm=00;38;5;61:*.tif=00;38;5;61:*.tiff=00;38;5;61:*.png=00;38;5;61:*.svg=00;38;5;61:*.svgz=00;38;5;61:*.mng=00;38;5;61:*.pcx=00;38;5;61:*.dl=00;38;5;61:*.xcf=00;38;5;61:*.xwd=00;38;5;61:*.yuv=00;38;5;61:*.cgm=00;38;5;61:*.emf=00;38;5;61:*.eps=00;38;5;61:*.CR2=00;38;5;61:*.ico=00;38;5;61:*.zip=01;38;5;67:*.tar=00;38;5;67:*.tgz=01;38;5;67:*.lzh=01;38;5;67:*.z=01;38;5;67:*.Z=01;38;5;67:*.7z=01;38;5;67:*.gz=01;38;5;67:*.bz2=01;38;5;67:*.bz=01;38;5;67:*.deb=01;38;5;67:*.rpm=01;38;5;67:*.jar=01;38;5;103:*.rar=01;38;5;67:*.apk=01;38;5;67:*.gem=01;38;5;67:',
'NODE=C:\\Program Files\\nodejs\\node.exe',
'npm_config_access=',
'npm_config_allow_same_version=',
'npm_config_also=',
'npm_config_always_auth=',
'npm_config_argv={"remain":["epub.js"],"cooked":["run","prepare","--","epub.js"],"original":["run","prepare","--","epub.js"]}',
'npm_config_auth_type=legacy',
'npm_config_bin_links=true',
'npm_config_browser=',
'npm_config_ca=',
'npm_config_cache=C:\\Users\\Dominykas\\AppData\\Roaming\\npm-cache',
'npm_config_cache_lock_retries=10',
'npm_config_cache_lock_stale=60000',
'npm_config_cache_lock_wait=10000',
'npm_config_cache_max=Infinity',
'npm_config_cache_min=10',
'npm_config_cafile=',
'npm_config_cert=',
'npm_config_color=true',
'npm_config_commit_hooks=true',
'npm_config_depth=Infinity',
'npm_config_description=true',
'npm_config_dev=',
'npm_config_dry_run=',
'npm_config_editor=notepad.exe',
'npm_config_engine_strict=',
'npm_config_fetch_retries=2',
'npm_config_fetch_retry_factor=10',
'npm_config_fetch_retry_maxtimeout=60000',
'npm_config_fetch_retry_mintimeout=10000',
'npm_config_force=',
'npm_config_git=git',
'npm_config_git_tag_version=true',
'npm_config_global=',
'npm_config_globalconfig=C:\\Users\\Dominykas\\AppData\\Roaming\\npm\\etc\\npmrc',
'npm_config_globalignorefile=C:\\Users\\Dominykas\\AppData\\Roaming\\npm\\etc\\npmignore',
'npm_config_global_style=',
'npm_config_group=',
'npm_config_ham_it_up=',
'npm_config_heading=npm',
'npm_config_https_proxy=',
'npm_config_if_present=',
'npm_config_ignore_prepublish=',
'npm_config_ignore_scripts=',
'npm_config_init_author_email=',
'npm_config_init_author_name=',
'npm_config_init_author_url=',
'npm_config_init_license=ISC',
'npm_config_init_module=C:\\Users\\Dominykas\\.npm-init.js',
'npm_config_init_version=1.0.0',
'npm_config_json=',
'npm_config_key=',
'npm_config_legacy_bundling=',
'npm_config_link=',
'npm_config_local_address=',
'npm_config_loglevel=notice',
'npm_config_logs_max=10',
'npm_config_long=',
'npm_config_maxsockets=50',
'npm_config_message=%s',
'npm_config_metrics_registry=https://registry.npmjs.org/',
'npm_config_node_version=8.1.2',
'npm_config_offline=',
'npm_config_onload_script=',
'npm_config_only=',
'npm_config_optional=true',
'npm_config_package_lock=true',
'npm_config_parseable=',
'npm_config_prefer_offline=',
'npm_config_prefer_online=',
'npm_config_prefix=C:\\Users\\Dominykas\\AppData\\Roaming\\npm',
'npm_config_production=',
'npm_config_progress=true',
'npm_config_proxy=',
'npm_config_rebuild_bundle=true',
'npm_config_registry=https://registry.npmjs.org/',
'npm_config_rollback=true',
'npm_config_save=true',
'npm_config_save_bundle=',
'npm_config_save_dev=',
'npm_config_save_exact=',
... 134 more items ],
options:
{ cwd: 'C:\\Users\\DOMINY~1\\AppData\\Local\\Temp\\tmp-4304KzO9Ce5tCHcH',
file: 'git',
args: [ 'git', 'rm', '--cached', 'node_modules\\epub.js\\package.json' ],
envPairs:
[ 'ALLUSERSPROFILE=C:\\ProgramData',
'APPDATA=C:\\Users\\Dominykas\\AppData\\Roaming',
'BROWSER=cygstart',
'COMMONPROGRAMFILES=C:\\Program Files\\Common Files',
'CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files',
'CommonProgramW6432=C:\\Program Files\\Common Files',
'COMPUTERNAME=HP8540P',
'COMSPEC=C:\\WINDOWS\\system32\\cmd.exe',
'C_EM64T_REDIST11=C:\\Program Files (x86)\\Common Files\\Intel\\Shared Files\\cpp\\',
'HOME=C:\\Users\\Dominykas',
'HOMEDRIVE=C:',
'HOMEPATH=\\Users\\Dominykas',
'INIT_CWD=E:\\ivairus\\cygwin\\home\\Dominykas\\darbalaukiai\\__kontraktai\\iko-app',
'JDK_BIN=C:\\Program Files\\Java\\jdk1.8.0_112\\bin',
'JRE_BIN=C:\\Program Files\\Java\\jre1.8.0_112\\bin',
'LANG=C.UTF-8',
'LOCALAPPDATA=C:\\Users\\Dominykas\\AppData\\Local',
'LOGONSERVER=\\\\HP8540P',
'LS_COLORS=no=00;38;5;60:fi=00:rs=0:di=01;38;5;104:ln=01;38;5;111:mh=00:pi=48;5;230;38;5;136;01:so=48;5;230;38;5;136;01:bd=;4;230;38;5;142;01:cd=;1;230;38;5;94;01:or=38;5;009;48;5;052:ex=0;38;5;2:*.clj=01;38;5;72:*.cljs=01;38;5;108:*.sh=01;38;5;95:*.html=01;38;5;36:*.swp=00;38;5;243:*.swo=00;38;5;243:*.aac=00;38;5;61:*.au=00;38;5;61:*.flac=00;38;5;61:*.mid=00;38;5;61:*.midi=00;38;5;61:*.mka=00;38;5;61:*.mp3=00;38;5;61:*.ogg=00;38;5;61:*.wav=00;38;5;61:*.m4a=00;38;5;61:*.mov=01;38;5;61:*.mpg=01;38;5;61:*.mpeg=01;38;5;61:*.m2v=01;38;5;61:*.mkv=01;38;5;61:*.ogm=01;38;5;61:*.mp4=01;38;5;61:*.m4v=01;38;5;61:*.mp4v=01;38;5;61:*.vob=01;38;5;61:*.qt=01;38;5;61:*.nuv=01;38;5;61:*.wmv=01;38;5;61:*.asf=01;38;5;61:*.rm=01;38;5;61:*.rmvb=01;38;5;61:*.flc=01;38;5;61:*.avi=01;38;5;61:*.fli=01;38;5;61:*.flv=01;38;5;61:*.gl=01;38;5;61:*.m2ts=01;38;5;61:*.divx=01;38;5;61:*.webm=01;38;5;61:*.jpg=00;38;5;61:*.JPG=00;38;5;61:*.jpeg=00;38;5;61:*.gif=00;38;5;61:*.bmp=00;38;5;61:*.pbm=00;38;5;61:*.pgm=00;38;5;61:*.ppm=00;38;5;61:*.tga=00;38;5;61:*.xbm=00;38;5;61:*.xpm=00;38;5;61:*.tif=00;38;5;61:*.tiff=00;38;5;61:*.png=00;38;5;61:*.svg=00;38;5;61:*.svgz=00;38;5;61:*.mng=00;38;5;61:*.pcx=00;38;5;61:*.dl=00;38;5;61:*.xcf=00;38;5;61:*.xwd=00;38;5;61:*.yuv=00;38;5;61:*.cgm=00;38;5;61:*.emf=00;38;5;61:*.eps=00;38;5;61:*.CR2=00;38;5;61:*.ico=00;38;5;61:*.zip=01;38;5;67:*.tar=00;38;5;67:*.tgz=01;38;5;67:*.lzh=01;38;5;67:*.z=01;38;5;67:*.Z=01;38;5;67:*.7z=01;38;5;67:*.gz=01;38;5;67:*.bz2=01;38;5;67:*.bz=01;38;5;67:*.deb=01;38;5;67:*.rpm=01;38;5;67:*.jar=01;38;5;103:*.rar=01;38;5;67:*.apk=01;38;5;67:*.gem=01;38;5;67:',
'NODE=C:\\Program Files\\nodejs\\node.exe',
'npm_config_access=',
'npm_config_allow_same_version=',
'npm_config_also=',
'npm_config_always_auth=',
'npm_config_argv={"remain":["epub.js"],"cooked":["run","prepare","--","epub.js"],"original":["run","prepare","--","epub.js"]}',
'npm_config_auth_type=legacy',
'npm_config_bin_links=true',
'npm_config_browser=',
'npm_config_ca=',
'npm_config_cache=C:\\Users\\Dominykas\\AppData\\Roaming\\npm-cache',
'npm_config_cache_lock_retries=10',
'npm_config_cache_lock_stale=60000',
'npm_config_cache_lock_wait=10000',
'npm_config_cache_max=Infinity',
'npm_config_cache_min=10',
'npm_config_cafile=',
'npm_config_cert=',
'npm_config_color=true',
'npm_config_commit_hooks=true',
'npm_config_depth=Infinity',
'npm_config_description=true',
'npm_config_dev=',
'npm_config_dry_run=',
'npm_config_editor=notepad.exe',
'npm_config_engine_strict=',
'npm_config_fetch_retries=2',
'npm_config_fetch_retry_factor=10',
'npm_config_fetch_retry_maxtimeout=60000',
'npm_config_fetch_retry_mintimeout=10000',
'npm_config_force=',
'npm_config_git=git',
'npm_config_git_tag_version=true',
'npm_config_global=',
'npm_config_globalconfig=C:\\Users\\Dominykas\\AppData\\Roaming\\npm\\etc\\npmrc',
'npm_config_globalignorefile=C:\\Users\\Dominykas\\AppData\\Roaming\\npm\\etc\\npmignore',
'npm_config_global_style=',
'npm_config_group=',
'npm_config_ham_it_up=',
'npm_config_heading=npm',
'npm_config_https_proxy=',
'npm_config_if_present=',
'npm_config_ignore_prepublish=',
'npm_config_ignore_scripts=',
'npm_config_init_author_email=',
'npm_config_init_author_name=',
'npm_config_init_author_url=',
'npm_config_init_license=ISC',
'npm_config_init_module=C:\\Users\\Dominykas\\.npm-init.js',
'npm_config_init_version=1.0.0',
'npm_config_json=',
'npm_config_key=',
'npm_config_legacy_bundling=',
'npm_config_link=',
'npm_config_local_address=',
'npm_config_loglevel=notice',
'npm_config_logs_max=10',
'npm_config_long=',
'npm_config_maxsockets=50',
'npm_config_message=%s',
'npm_config_metrics_registry=https://registry.npmjs.org/',
'npm_config_node_version=8.1.2',
'npm_config_offline=',
'npm_config_onload_script=',
'npm_config_only=',
'npm_config_optional=true',
'npm_config_package_lock=true',
'npm_config_parseable=',
'npm_config_prefer_offline=',
'npm_config_prefer_online=',
'npm_config_prefix=C:\\Users\\Dominykas\\AppData\\Roaming\\npm',
'npm_config_production=',
'npm_config_progress=true',
'npm_config_proxy=',
'npm_config_rebuild_bundle=true',
'npm_config_registry=https://registry.npmjs.org/',
'npm_config_rollback=true',
'npm_config_save=true',
'npm_config_save_bundle=',
'npm_config_save_dev=',
'npm_config_save_exact=',
... 134 more items ],
killSignal: undefined,
stdio: [ [Object], [Object], [Object] ] },
args: [ 'git', 'rm', '--cached', 'node_modules\\epub.js\\package.json' ],
file: 'git',
error: null }
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
cygpath - Cygwin
The cygpath program is a utility that converts Windows native filenames to Cygwin POSIX-style pathnames and vice versa. It can be used when...
Read more >Convert Cygwin path to Windows path in a makefile
I have the situation of using Cygwin's make with a GCC that does not understand Cygwin style paths, so paths relative to the...
Read more >How to customize the 'which' command of Cygwin to display ...
To convert a path from UNIX-style to Windows-style or vice-versa, the cygpath command of Cygwin can be used. >cygpath -w /cygdrive/c/Windows/ ...
Read more >Cygwin User's Guide
Cygwin is a Linux-like environment for Windows. It consists of a DLL (cygwin1.dll), which acts as an emulation layer providing substantial POSIX (Portable ......
Read more >Windows-style path is not recognized under cygwin
The mentioned path syntax is useful and supported under cygwin, so it would be nice if python3 could support it, too. Especially useful...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I wrote a minimalistic alternative[0]. You might find it interesting. It’s in the form of a cli tool. Wrote a brief overview there.
[0] https://gist.github.com/dmos62/5ac03373328a9d9cdc3288185f531547
On 9/19/17, David Sheldrick notifications@github.com wrote:
Haven’t been able to reproduce this issue, and have changed all paths to be unix-style, so I’m closing this due to inactivity. Feel free to reopen it if you find you’re still encountering the issue.