[wp-trac] [WordPress Trac] #47767: Simplify and backport the local environment
WordPress Trac
noreply at wordpress.org
Fri Oct 11 10:42:22 UTC 2019
#47767: Simplify and backport the local environment
------------------------------+-----------------------
Reporter: pento | Owner: pento
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 5.3
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: needs-testing | Focuses:
PR Number: |
------------------------------+-----------------------
Comment (by tusca95):
Replying to [comment:63 tusca95]:
> Hi all!
>
> I'm trying to install wordpress-develop.git in a centos machine with the
latest docker and npm.
>
> I've encountered some errors during the setup.
>
> First of all Phantomjs wasn't able to found, so i'll have to install it
with phantomjs-prebuilt, then i found that npm needs the packet bzip2 to
extract zip files, so it is necessary to have it in my same software
configuration.
>
> Solved this one, i have some problem with the run build:dev command.
This is the output of the command
>
> npm run build:dev
>
> > WordPress at 5.3.0 build:dev /root/wordpress-develop
> > grunt build --dev
>
> Loading "Gruntfile.js" tasks...ERROR
> >> Error: ENOENT: no such file or directory, scandir '/root/wordpress-
develop/node_modules/node-sass/vendor'
> Warning: Task "build" not found. Use --force to continue.
>
> Aborted due to warnings.
> npm ERR! code ELIFECYCLE
> npm ERR! errno 3
> npm ERR! WordPress at 5.3.0 build:dev: `grunt build --dev`
> npm ERR! Exit status 3
> npm ERR!
> npm ERR! Failed at the WordPress at 5.3.0 build:dev script.
> npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
>
> npm ERR! A complete log of this run can be found in:
> npm ERR! /root/.npm/_logs/2019-10-11T10_16_45_860Z-debug.log
>
> Hope that someone can find a solution!!
>
> Have a nice day
So after a while i've found the issue, need to install grunt with
{{{
npm install grunt
}}}
and than reconfigure node-sass with
{{{
npm rebuild node-sass
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47767#comment:64>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list