You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
npm install gets stuck / hangs in reify:poly-fill-library #222
I have circumvented the issue by just commenting out the line with npm install npm build to get the PHP tests out.
Not sure if the issue is with nvm, but reinstall or using other node versions won't work either.
The full script I'm using:
#!/bin/bash# Load nvm and test runner env variablessource /home/wptestrunner/.nvm/nvm.sh
source /var/www/wp-test-runner/.env
# Get the correct node version from https://github.com/WordPress/wordpress-develop/blob/trunk/package.json engines section to a variable
mkdir -p $HOME/wordpress-develop
rm -f $HOME/wordpress-develop/package.json
wget -qO- https://raw.githubusercontent.com/WordPress/wordpress-develop/trunk/package.json >$HOME/wordpress-develop/package.json
WP_DEVELOP_NODE_VERSION=$(cat $HOME/wordpress-develop/package.json | grep -oP '(?<="node": ">=)(.*?)(?=")')
nvm install $WP_DEVELOP_NODE_VERSION# Use the correct node version
nvm use $WP_DEVELOP_NODE_VERSION# Make sure we are in the right placecd /var/www/wp-test-runner
# Ensure we have the latest version
git pull
# Do complete cache clean
npm cache clean --force
# Do cleanup in case previous tests have failed
php /var/www/wp-test-runner/cleanup.php
# Prepare tests, bail if preparations failif php /var/www/wp-test-runner/prepare.php | grep -q "Success: Prepared environment";thenecho"Success: Prepared environment"elseecho""exitfi# Actual tests do not have clear output to test against
php /var/www/wp-test-runner/test.php
# Send test results, bail upload does not succeedif php /var/www/wp-test-runner/report.php | grep -q "Results successfully uploaded";thenecho"Results successfully uploaded"elseecho""exitfi# Cleanup do not have clear output to test against
php /var/www/wp-test-runner/cleanup.php
Activity
rollecode commentedon May 16, 2024
I have circumvented the issue by just commenting out the line with npm install npm build to get the PHP tests out.
Not sure if the issue is with nvm, but reinstall or using other node versions won't work either.
The full script I'm using:
pfefferle commentedon Jun 13, 2024
Can you try it with these changes? #225
kittenkamala commentedon May 14, 2025
#225 was merged - ronilaukkarinen please update if the install still hangs or if resolved now (when you can). Thank you!!
rollecode commentedon May 15, 2025
Our script fetches always the latest version, so this seems to be fixed. Thanks!