[wp-trac] [WordPress Trac] #48288: WordPress Installation - "npm run env:start" not working on windows

WordPress Trac noreply at wordpress.org
Fri Oct 11 07:29:58 UTC 2019


#48288: WordPress Installation - "npm run env:start" not working on windows
------------------------------+-----------------------------
 Reporter:  veminom           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+-----------------------------
 Command
 {{{
 npm run env:start
 }}}
  seems to be not working on Windows

 **Steps to reproduce:**

 1. Open windows environment.
 2. Clone WP Trunk -
 {{{
 git clone git://develop.git.wordpress.org/ wp-trunk
 }}}
 3. Navigate to cloned directory -
 {{{
 cd wp-trunk
 }}}
 4. Install npm for the project -
 {{{
 npm install
 }}}
 5. Got an error for PhantomJS -
 {{{
 PhantomJS not found on PATH
 Downloading
 https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip
 Saving to
 C:\Users\PREMAN~1\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
 Receiving...

 Error making request.
 Error: getaddrinfo ENOTFOUND github-production-release-asset-
 2e65be.s3.amazonaws.com github-production-release-asset-
 2e65be.s3.amazonaws.com:443
     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)
 }}}
 Screenshot: https://cl.ly/4f89e35a9128
 6. Installed PhantomJS using NPM -
 {{{
 npm install phantomjs-prebuilt
 }}}
 7. Ran
 {{{
 npm install
 }}}
  again and it working without any errors

 8. Ran
 {{{
 npm run env:start
 }}}
 Command but it failed with the following errors:

 {{{
 'docker-compose' is not recognized as an internal or external command,
 operable program or batch file.
 child_process.js:662
     throw err;
 }}}

 Screenshot: https://cl.ly/08c56b836dce


 **There are 2 points I'm concerned with**

 1. PhantomJS should get installed as a dependency while running
 {{{
 npm install
 }}}

 2. The errors I'm getting while running
 {{{
 npm run env:start
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48288>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list