Skip to content

Unable to build mapillary with Windows #293

@TietoaPetter

Description

@TietoaPetter

Basic information

MapillaryJS version: 2.18.0
System/Browser: Windows 10

Steps to Reproduce Behavior

  1. Clone repo
  2. Run npm install on Windows, or use npm module from fork location

Expected behavior

dependancies should be installed as well as a build created

Actual behavior

the following error message appears, due to running a UNIX command in a Windows environment.
'rm' is not recognized as an internal or external command

Workaround

A possible workaround or solution is to include shx into the dev dependencies by calling npm install shx --save-dev

then prefixing all Unix commands with shx.

cat styles/*.css => shx cat styles/*.css

also the "include all filenames" -a tag isn't supported with shx so
"copy-assets": "cp -a styles/*.svg dist", needs to be changed to "copy-assets": "shx cp styles/*.svg dist",

Everything works swimmingly after that.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions