Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building the site for tag v4.1.1 error #94

Open
haies opened this issue Aug 3, 2018 · 4 comments
Open

Building the site for tag v4.1.1 error #94

haies opened this issue Aug 3, 2018 · 4 comments

Comments

@haies
Copy link

haies commented Aug 3, 2018

It works when I built the site for latest version, however when i run the following script to build the site for tag v4.1.1 it didn't works.
treeish=v4.1.1 npm run deploy
And the output error is
Running "run:ol" (run) task npm ERR! missing script: build-legacy
so, i checkout Updating for v4.1.1 edition, then run above script,but it show the following error
Running "make:examples" (make) task info ol Parsing dependencies info ol Compiling 345 sources vents.js:183 throw er; // Unhandled 'error' event
My project already has used openlayers 4.1.1 for quite a long time, could anyone please show me the righ way to build v4.1.1 docs ?

@ahocevar
Copy link
Member

ahocevar commented Aug 3, 2018

You have to check out the correct revision of this repository before building the docs, i.e. 3c9f652:

git checkout 3c9f652c97776702eaa88f0849b0497a08d86bba
treeish=v4.1.1 npm run build

@haies
Copy link
Author

haies commented Aug 3, 2018

@ahocevar Thanks a lot for taking the time to reply to my problem.
I have tried the way you suggested,
But, I still got the following errors:

Running "make:examples" (make) task
>> info
>> ol Parsing dependencies
>> info
>> ol Compiling 345 sources
>> events.js:183
>> throw er; // Unhandled 'error' event
>> ^
>>
>> Error: spawn java ENOENT
>> at _errnoException (util.js:992:11)
>> at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
>> at onErrorNT (internal/child_process.js:372:16)
>> at _combinedTickCallback (internal/process/next_tick.js:138:11)
>> at process._tickCallback (internal/process/next_tick.js:180:9)
>> make: * [build/ol.js] Error 1
Warning: make failure: 2 Use --force to continue.

And my enviroment is :
➜ openlayers.github.io lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.3 (stretch)
Release: 9.3
Codename: stretch
➜ openlayers.github.io node -v
v8.11.3
➜ openlayers.github.io git --version
git version 2.11.0

@ahocevar
Copy link
Member

ahocevar commented Aug 3, 2018

It is also important to run npm install after checking out the required revision from this repository.

@haies
Copy link
Author

haies commented Aug 6, 2018

I run the following script from the beginning:
git clone -b build https://github.com/openlayers/openlayers.github.io.git
cd openlayers.github.io
git pull origin build
git checkout 3c9f652c97776702eaa88f0849b0497a08d86bba
npm install
treeish=v4.1.1 npm run build
I got the same error as above, any other suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants