• Resolved emanuel94

    (@emanuel94)


    Hello, I am having trouble with this guide:
    https://github.com/woocommerce/woocommerce/wiki/How-to-set-up-WooCommerce-development-environment
    I have followed the steps, but when I run npm run build I get the following error:

    > grunt && npm run makepot
    Running "eslint:src" (eslint) task
    Warning: Cannot read config file: /home/lucas/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/woocommerce/.eslintrc.js
    Error: Cannot find module '@automattic/puppeteer-utils'

    This is the npm log:

    0 info it worked if it ends with ok
    1 verbose cli [
    1 verbose cli   '/home/lucas/.nvm/versions/node/v12.21.0/bin/node',
    1 verbose cli   '/home/lucas/.nvm/versions/node/v12.21.0/bin/npm',
    1 verbose cli   'run',
    1 verbose cli   'build'
    1 verbose cli ]
    2 info using npm@6.14.11
    3 info using node@v12.21.0
    4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
    5 info lifecycle woocommerce@5.1.0~prebuild: woocommerce@5.1.0
    6 info lifecycle woocommerce@5.1.0~build: woocommerce@5.1.0
    7 verbose lifecycle woocommerce@5.1.0~build: unsafe-perm in lifecycle true
    8 verbose lifecycle woocommerce@5.1.0~build: PATH: /home/lucas/.nvm/versions/node/v12.21.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/lucas/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/woocommerce/node_modules/.bin:/home/lucas/.nvm/versions/node/v12.21.0/bin:/home/lucas/Android/Sdk/emulator:/home/lucas/Android/Sdk/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/opt/gradle/gradle-6.6.1/bin
    9 verbose lifecycle woocommerce@5.1.0~build: CWD: /home/lucas/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/woocommerce
    10 silly lifecycle woocommerce@5.1.0~build: Args: [ '-c', './bin/build-zip.sh' ]
    11 silly lifecycle woocommerce@5.1.0~build: Returned: code: 6  signal: null
    12 info lifecycle woocommerce@5.1.0~build: Failed to exec build script
    13 verbose stack Error: woocommerce@5.1.0 build: <code>./bin/build-zip.sh</code>
    13 verbose stack Exit status 6
    13 verbose stack     at EventEmitter.<anonymous> (/home/lucas/.nvm/versions/node/v12.21.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
    13 verbose stack     at EventEmitter.emit (events.js:314:20)
    13 verbose stack     at ChildProcess.<anonymous> (/home/lucas/.nvm/versions/node/v12.21.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
    13 verbose stack     at ChildProcess.emit (events.js:314:20)
    13 verbose stack     at maybeClose (internal/child_process.js:1022:16)
    13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
    14 verbose pkgid woocommerce@5.1.0
    15 verbose cwd /home/lucas/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/woocommerce
    16 verbose Linux 5.4.0-66-generic
    17 verbose argv "/home/lucas/.nvm/versions/node/v12.21.0/bin/node" "/home/lucas/.nvm/versions/node/v12.21.0/bin/npm" "run" "build"
    18 verbose node v12.21.0
    19 verbose npm  v6.14.11
    20 error code ELIFECYCLE
    21 error errno 6
    22 error woocommerce@5.1.0 build: <code>./bin/build-zip.sh</code>
    22 error Exit status 6
    23 error Failed at the woocommerce@5.1.0 build script.
    23 error This is probably not a problem with npm. There is likely additional logging output above.
    24 verbose exit [ 6, true ]
    • This topic was modified 5 years, 2 months ago by emanuel94.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘npm Error setting up woocommerce developer environment’ is closed to new replies.