[wp-trac] [WordPress Trac] #56725: WordPress setup on local - "npm run env:install" not working on windows

WordPress Trac noreply at wordpress.org
Sun Dec 25 15:39:24 UTC 2022


#56725: WordPress setup on local - "npm run env:install" not working on windows
-------------------------------+------------------------------
 Reporter:  ashokrd2013        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Build/Test Tools   |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by bgoewert):

 @ashokrd2013 It seems that this is a configuration issue, not an issue
 with wordpress-develop and would have been better posted to
 [https://wordpress.org/support wordpress.org/support]. But I don't mind to
 help out here.

 **Questions**

 1. Are you using WSL2 or Hyper-V backend?
 1. Is your user a local admin and/or in the `docker-users` group?
   - You can check it by using `net localgroup docker-users`
   - If not, you can add it with `net localgroup docker-users <user> /add`
 1. Are you using WAMP? `D:\wamp64\www\` I noticed this in your path and it
 may be causing permission issues (idk, I don't use wamp or xampp so I
 don't know how the permissions work for them). However, I imagine it would
 still work if your user was a local admin.
  - Just for testing purposes, try cloning [https://githb.com/WordPress
 /wordpress-develop wordpress-develop] into a different directory on your
 `C:\` drive.

 **Steps I just tested again, without issue**

 1. Clone [https://githb.com/WordPress/wordpress-develop wordpress-develop]
 1. `cd wordpress-develop`
 1. `npm install`
 1. `npm run env:reset`
 1. `npm build:dev`
 1. `npm run env:start`
 1. Navigate to [http://localhost:8889 localhost:8889], notice that I am
 redirected to `/wp-admin/install.php`.
 1. `npm run env:install`
 1. Navigate to [http://localhost:8889/wp-admin/install.php localhost:8889
 /wp-admin/install.php], notice it says "Already Installed".

 {{{
 PS C:\Users\goewe\Desktop\Projects\WordPress\wordpress-develop> npm run
 env:install

 > WordPress at 6.2.0 env:install C:\Users\goewe\Desktop\Projects\WordPress
 \wordpress-develop
 > node ./tools/local-env/scripts/install.js

 [+] Running 21/21
  - cli Pulled
 2.8s
    - a603fa5e3b41 Already exists
 0.0s
    - c428f1a49423 Already exists
 0.0s
    - 156740b07ef8 Already exists
 0.0s
    - fb5a4c8af82f Already exists
 0.0s
    - 972155ae644b Already exists
 0.0s
    - a8e3b94fe6c1 Already exists
 0.0s
    - 93346a3f46bc Already exists
 0.0s
    - b922b67ca46b Already exists
 0.0s
    - 6137f893bda6 Already exists
 0.0s
    - 79b1a1b78461 Already exists
 0.0s
    - 604120b01061 Already exists
 0.0s
    - f6495f637592 Already exists
 0.0s
    - 6d9f5157501d Already exists
 0.0s
    - a830bd0550f2 Already exists
 0.0s
    - 1703f3d8599c Already exists
 0.0s
    - e483604ead07 Already exists
 0.0s
    - c9a9ff052dd9 Pull complete
 1.2s
    - fb5e5b5906eb Pull complete
 1.3s
    - ded9eeca1440 Pull complete
 1.4s
    - cb8e7b039c8e Pull complete
 1.5s
 Success: Generated 'wp-config.php' file.
 Success: Updated the constant 'WP_DEBUG' in the 'wp-config.php' file with
 the raw value 'true'.
 Success: Added the constant 'WP_DEBUG_LOG' to the 'wp-config.php' file
 with the raw value 'true'.
 Success: Added the constant 'WP_DEBUG_DISPLAY' to the 'wp-config.php' file
 with the raw value 'true'.
 Success: Added the constant 'SCRIPT_DEBUG' to the 'wp-config.php' file
 with the raw value 'true'.
 Success: Added the constant 'WP_ENVIRONMENT_TYPE' to the 'wp-config.php'
 file with the value 'local'.
 Cloning into 'tests/phpunit/data/plugins/wordpress-importer'...
 Success: Database reset.
 Success: WordPress installed successfully.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56725#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list