xeokit / xeokit-bim-viewer-app

Drop multiple model file formats in a directory, run a script, and view them all together in the browser - IFC, points clouds and CAD models.
https://xeokit.github.io/xeokit-bim-viewer-app/?projectId=demoProject&modelId=rac_advanced_sample_project
Other
15 stars 13 forks source link

Error while executing npm run build #1

Open sbalot opened 2 years ago

sbalot commented 2 years ago

I am trying to install this repo using the commands given in the introduction. When I try to execute mkdir -p ./lib/xeokit-bim-viewer; cp ./node_modules/@xeokit/xeokit-bim-viewer/dist/* ./lib/xeokit-bim-viewer/., I get the following error.

`

xeokit-bim-viewer-app@1.0.0 build mkdir -p ./lib/xeokit-bim-viewer; cp ./node_modules/@xeokit/xeokit-bim-viewer/dist/* ./lib/xeokit-bim-viewer/.The syntax of the command is incorrect. `

What is the cause for it and how to rectify it?

xeolabs commented 2 years ago

Build works OK for me, see below.

What's the error message? I can't see where the error message is in your description.

lindsay@bodacious:~/xeokit-bim-viewer-app$ npm run build

> xeokit-bim-viewer-app@1.0.0 build
> mkdir -p ./lib/xeokit-bim-viewer; cp ./node_modules/@xeokit/xeokit-bim-viewer/dist/* ./lib/xeokit-bim-viewer/.

lindsay@bodacious:~/xeokit-bim-viewer-app$ 
sbalot commented 2 years ago

The issue had to do with mkdir -p running in npm as mentioned here https://stackoverflow.com/questions/39727920/cant-use-mkdir-in-npm-script-from-windows

So, I installed mkdirp and now the build is successful