[wp-trac] [WordPress Trac] #47767: Simplify and backport the local environment

WordPress Trac noreply at wordpress.org
Sat Jul 27 15:25:32 UTC 2019


#47767: Simplify and backport the local environment
-------------------------------------+-----------------------
 Reporter:  pento                    |       Owner:  pento
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.3
Component:  Build/Test Tools         |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:
-------------------------------------+-----------------------

Comment (by pbearne):

 @pento

 reverted and updated SVN
 applied .3 diff ( i used the TortoiseSVN to apply the patch ) seem to work
 this time


 {{{
 tools\local-env> npm install
 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7
 (node_modules\chokidar\node_modules\fsevents):
 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
 fsevents at 1.2.9: wanted {"os":"darwin","arch":"any"} (current:
 {"os":"win32","arch":"x64"})
 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7
 (node_modules\jest-haste-map\node_modules\fsevents):
 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
 fsevents at 1.2.9: wanted {"os":"darwin","arch":"any"} (current:
 {"os":"win32","arch":"x64"})
 npm WARN WordPress at 5.3.0 license should be a valid SPDX license expression
 }}}

 I know this s waring but it would nice not to it
 I then ran npm run env:start
 that worked

 so I go to http://localhost:8889/

 and the npm install promote

 in VVV it is run for us



 {{{
  npm run dev

 > WordPress at 5.3.0 dev ...\code\SVN-core-wp
 > grunt build --dev

 Loading "Gruntfile.js" tasks...ERROR
 >> SyntaxError: Unexpected token ...
 Warning: Task "build" not found. Use --force to continue.

 Aborted due to warnings.

 npm ERR! Windows_NT 10.0.17134
 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
 Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
 npm ERR! node v6.9.4
 npm ERR! npm  v3.10.10
 npm ERR! code ELIFECYCLE
 npm ERR! WordPress at 5.3.0 dev: `grunt build --dev`
 npm ERR! Exit status 3
 npm ERR!
 npm ERR! Failed at the WordPress at 5.3.0 dev script 'grunt build --dev'.
 npm ERR! Make sure you have the latest version of node.js and npm
 installed.
 npm ERR! If you do, this is most likely a problem with the WordPress
 package,
 npm ERR! not with npm itself.
 npm ERR! Tell the author that this fails on your system:
 npm ERR!     grunt build --dev
 npm ERR! You can get information on how to open an issue for this project
 with:
 npm ERR!     npm bugs WordPress
 npm ERR! Or if that isn't available, you can get their info via:
 npm ERR!     npm owner ls WordPress
 npm ERR! There is likely additional logging output above.

 npm ERR! Please include the following file with any support request:
 npm ERR!     ...\SVN-core-wp\npm-debug.log
 }}}

 log
 {{{
 0 info it worked if it ends with ok
 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
 1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-
 cli.js',
 1 verbose cli   'run',
 1 verbose cli   'dev' ]
 2 info using npm at 3.10.10
 3 info using node at v6.9.4
 4 verbose run-script [ 'predev', 'dev', 'postdev' ]
 5 info lifecycle WordPress at 5.3.0~predev: WordPress at 5.3.0
 6 silly lifecycle WordPress at 5.3.0~predev: no script for predev, continuing
 7 info lifecycle WordPress at 5.3.0~dev: WordPress at 5.3.0
 8 verbose lifecycle WordPress at 5.3.0~dev: unsafe-perm in lifecycle true
 9 verbose lifecycle WordPress at 5.3.0~dev: PATH: C:\Program
 Files\nodejs\node_modules\npm\bin\node-gyp-
 bin;C:\Users\pbear\Documents\code\SVN-core-
 wp\node_modules\.bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program
 Files\Docker\Docker\Resources\bin;C:\Program Files (x86)\Common
 Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program
 Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
 Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program
 Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
 (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program
 Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
 (x86)\Calibre2\;C:\Program Files\TortoiseSVN\bin;C:\Program Files
 (x86)\NVIDIA Corporation\PhysX\Common;C:\Program
 Files\nodejs\;C:\php;C:\HashiCorp\Vagrant\bin;C:\Program
 Files\OpenVPN\bin;C:\Program Files\PuTTY\;C:\Program
 Files\Calibre2\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
 Files\Amazon\AWSCLI\;C:\Program Files\dotnet\;C:\Program Files\Microsoft
 SQL Server\130\Tools\Binn\;C:\Program Files
 (x86)\Gpg4win\..\GnuPG\bin;C:\Program
 Files\TortoiseGit\bin;C:\Ruby24-x64\bin;C:\Users\pbear\AppData\Local\Microsoft\WindowsApps;C:\Users\pbear\AppData\Roaming\npm;;C:\Program
 Files\Lando\bin
 10 verbose lifecycle WordPress at 5.3.0~dev: CWD:
 C:\Users\pbear\Documents\code\SVN-core-wp
 11 silly lifecycle WordPress at 5.3.0~dev: Args: [ '/d /s /c', 'grunt build
 --dev' ]
 12 silly lifecycle WordPress at 5.3.0~dev: Returned: code: 3  signal: null
 13 info lifecycle WordPress at 5.3.0~dev: Failed to exec dev script
 14 verbose stack Error: WordPress at 5.3.0 dev: `grunt build --dev`
 14 verbose stack Exit status 3
 14 verbose stack     at EventEmitter.<anonymous> (C:\Program
 Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
 14 verbose stack     at emitTwo (events.js:106:13)
 14 verbose stack     at EventEmitter.emit (events.js:191:7)
 14 verbose stack     at ChildProcess.<anonymous> (C:\Program
 Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
 14 verbose stack     at emitTwo (events.js:106:13)
 14 verbose stack     at ChildProcess.emit (events.js:191:7)
 14 verbose stack     at maybeClose (internal/child_process.js:877:16)
 14 verbose stack     at Process.ChildProcess._handle.onexit
 (internal/child_process.js:226:5)
 15 verbose pkgid WordPress at 5.3.0
 16 verbose cwd C:\Users\pbear\Documents\code\SVN-core-wp
 17 error Windows_NT 10.0.17134
 18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
 Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
 19 error node v6.9.4
 20 error npm  v3.10.10
 21 error code ELIFECYCLE
 22 error WordPress at 5.3.0 dev: `grunt build --dev`
 22 error Exit status 3
 23 error Failed at the WordPress at 5.3.0 dev script 'grunt build --dev'.
 23 error Make sure you have the latest version of node.js and npm
 installed.
 23 error If you do, this is most likely a problem with the WordPress
 package,
 23 error not with npm itself.
 23 error Tell the author that this fails on your system:
 23 error     grunt build --dev
 23 error You can get information on how to open an issue for this project
 with:
 23 error     npm bugs WordPress
 23 error Or if that isn't available, you can get their info via:
 23 error     npm owner ls WordPress
 23 error There is likely additional logging output above.
 24 verbose exit [ 1, true ]
 }}}

 OK that is it for now

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


More information about the wp-trac mailing list