when I run docker-compose up or change source file of p5.js, "grunt browserify" starts running as expected, but following errors occur.
p5_1 | Waiting for source files to change...
p5_1 | Rebuilding p5 source...
p5_1 | Running "grunt browserify"...
p5_1 | Loading "browserify.js" tasks...ERROR
p5_1 | >> Error: Cannot find module 'detective'
p5_1 | Loading "release-it.js" tasks...ERROR
p5_1 | >> Error: Cannot find module 'es5-ext/object/assign'
p5_1 | Loading "saucelabs.js" tasks...ERROR
p5_1 | >> Error: Cannot find module 'chalk'
p5_1 | Warning: Task "browserify" not found. Use --force to continue.
p5_1 |
p5_1 | Aborted due to warnings.
p5_1 | Command failed with exit code 3.
p5_1 | Copying p5 to website...
p5_1 | Running "cp lib/p5.js /var/www/html/js/p5.min.js"...
p5_1 | cp: cannot stat 'lib/p5.js': No such file or directory
p5_1 | Command failed with exit code 1.
p5_1 | Rebuilding p5 docs...
p5_1 | Running "grunt yuidoc:prod"...
p5_1 | Loading "browserify.js" tasks...ERROR
p5_1 | >> Error: Cannot find module 'detective'
p5_1 | Loading "release-it.js" tasks...ERROR
p5_1 | >> Error: Cannot find module 'es5-ext/object/assign'
p5_1 | Loading "saucelabs.js" tasks...ERROR
p5_1 | >> Error: Cannot find module 'chalk'
p5_1 |
p5_1 | Running "yuidoc:prod" (yuidoc) task
p5_1 | Warning: Cannot find module './yui-nodejs/yui-nodejs' Use --force to continue.
p5_1 |
p5_1 | Aborted due to warnings.
p5_1 | Command failed with exit code 3.
p5_1 | Copying p5 docs to website...
p5_1 | Running "rm -rf /var/www/html/reference"...
p5_1 | Command succeeded.
p5_1 | Running "cp -R docs/reference /var/www/html/reference"...
p5_1 | cp: cannot stat 'docs/reference': No such file or directory
p5_1 | Command failed with exit code 1.
I tried to fix it by adding grunt-broseify and browserify into Dockerfile of p5.js-docker, and also into package.json of p5-website-bridge, but didn't help.
when I run
docker-compose up
or change source file of p5.js, "grunt browserify" starts running as expected, but following errors occur.I tried to fix it by adding grunt-broseify and browserify into Dockerfile of p5.js-docker, and also into package.json of p5-website-bridge, but didn't help.