WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51898


Ignore:
Timestamp:
11/30/2020 03:00:18 PM (12 months ago)
Author:
SergeyBiryukov
Comment:

Hi there, welcome to WordPress Trac! Thanks for the report.

I've edited the description to make it a bit more readable.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51898

    • Property Component changed from General to Build/Test Tools
  • Ticket #51898 – Description

    initial v1  
    11why do i get error when follow wordpress/wordpress-develop github repository README.md
    22
    3 HERE IS THE wordpress/wordpress-develop github repository README.md
    4 
    5 Welcome to the WordPress development repository! Please check out the contributor handbook for information about how to open bug reports, contribute patches, test changes, write documentation, or get involved in any way you can.
    6 
    7 Getting Started
    8 Credentials
    9 Getting Started
    10 
    11 WordPress is a PHP, MySQL, and JavaScript based project, and uses Node for its JavaScript dependencies. A local development environment is available to quickly get up and running.
    12 
    13 You will need a basic understanding of how to use the command line on your computer. This will allow you to set up the local development environment, to start it and stop it when necessary, and to run the tests.
    14 
    15 You will need Node and npm installed on your computer. Node is a JavaScript runtime used for developer tooling, and npm is the package manager included with Node. If you have a package manager installed for your operating system, setup can be as straightforward as:
    16 
    17 macOS: brew install node
    18 Windows: choco install nodejs
    19 Ubuntu: apt install nodejs npm
    20 If you are not using a package manager, see the Node.js download page for installers and binaries.
    21 
    22 You will also need Docker installed and running on your computer. Docker is the virtualization software that powers the local development environment. Docker can be installed just like any other regular application. Development Environment Commands
    23 
    24 Ensure Docker is running before using these commands. To start the development environment for the first time
    25 
    26 npm install npm run build:dev npm run env:start npm run env:install
    27 
    28 Your WordPress site will accessible at http://localhost:8889. You can see or change configurations in the .env file located at the root of the project directory. To watch for changes
    29 
    30 If you're making changes to WordPress core files, you should start the file watcher in order to build or copy the files as necessary:
    31 
    32 npm run watch
    33 
    34 To stop the watcher, press ctrl+c. To run a WP-CLI command
    35 
    36 npm run env:cli
    37 
    38 WP-CLI has a lot of useful commands you can use to work on your WordPress site. Where the documentation mentions running wp, run npm run env:cli instead. For example:
    39 
    40 npm run env:cli help
    41 
    42 To run the tests
    43 
    44 These commands run the PHP and end-to-end test suites, respectively:
    45 
    46 npm run test:php npm run test:e2e
    47 
    48 To restart the development environment
    49 
    50 You may want to restart the environment if you've made changes to the configuration in the docker-compose.yml or .env files. Restart the environment with:
    51 
    52 npm run env:restart
    53 
    54 To stop the development environment
    55 
    56 You can stop the environment when you're not using it to preserve your computer's power and resources:
    57 
    58 npm run env:stop
    59 
    60 To start the development environment again
    61 
    62 Starting the environment again is a single command:
    63 
    64 npm run env:start
    65 
    66 Credentials
    67 
    68 These are the default environment credentials:
    69 
    70 Database Name: wordpress_develop
    71 Username: root
    72 Password: password
    73 To login to the site, navigate to http://localhost:8889/wp-admin.
    74 
    75 Username: admin
    76 Password: password
    77 To generate a new password (recommended):
    78 
    79 Go to the Dashboard
    80 Click the Users menu on the left
    81 Click the Edit link below the admin user
    82 Scroll down and click 'Generate password'. Either use this password (recommended) or change it, then click 'Update User'. If you use the generated password be sure to save it somewhere (password manager, etc).
    83 [1]link:https://github.com/WordPress/wordpress-develop
     3HERE IS THE wordpress/wordpress-develop github repository [https://github.com/WordPress/wordpress-develop/blob/master/README.md README.md]
    844
    855HERE IS THE ERROR WITHOUT sudo:
    86 
     6{{{
    877arthur@Arthur:~/Desktop/wordpress-develop-master$ npm run env:start
    888
     
    17393npm ERR!     /home/arthur/.npm/_logs/2020-11-25T03_56_37_680Z-debug.log
    17494arthur@Arthur:~/Desktop/wordpress-develop-master$
     95}}}
     96
    17597HERE IS THE ERROR WITH sudo:
    176 
    177     arthur@Arthur:~/Desktop$ cd wordpress-develop-master
     98{{{
     99arthur@Arthur:~/Desktop$ cd wordpress-develop-master
    178100arthur@Arthur:~/Desktop/wordpress-develop-master$ sudo npm run env:start
    179101[sudo] password for arthur:
     
    2731957.0.3
    274196arthur@Arthur:~/Desktop/wordpress-develop-master$
     197}}}