Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with grunt script #4396

Open
Eswaraprasadp opened this issue Mar 20, 2020 · 5 comments
Open

Build error with grunt script #4396

Eswaraprasadp opened this issue Mar 20, 2020 · 5 comments
Labels

Comments

@Eswaraprasadp
Copy link

@Eswaraprasadp Eswaraprasadp commented Mar 20, 2020

Most appropriate sub-area of p5.js?

  • Color
  • Core/Environment/Rendering
  • Data
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Other (Build error)

Details about the bug:

  • Web browser and version:
    Chromium: 79.0.3945.79 (Official Build)
    Firefox: 71.0

  • Operating System: Ubuntu 18.04.3 (64-bit)

  • Steps to reproduce this:

$ npm ci
$ npm run grunt
> p5@1.0.0 grunt /home/eswar/Desktop/repos/p5.js
> grunt

Babel could not write cache to file: /home/eswar/Desktop/repos/p5.js/node_modules/.cache/@babel/register/.babel.7.7.7.development.json 
due to a permission issue. Cache is disabled.
Running "eslint:build" (eslint) task

Running "eslint:source" (eslint) task

Running "eslint:test" (eslint) task

Running "yuidoc:prod" (yuidoc) task
Failed to find lines for { name: 'Shape',
  submodules: 
   { '2D Primitives': 1,
     Curves: 1,
     Vertex: 1,
     '3D Primitives': 1,
     '3D Models': 1 },
  elements: {},
  classes: {},
  fors: { p5: 1 },
  namespaces: {} }
Failed to find lines for { name: 'Events',
  submodules: { Acceleration: 1, Keyboard: 1, Mouse: 1, Touch: 1 },
  elements: {},
  classes: {},
  fors: { p5: 1 },
  namespaces: {} }
src/dom/dom.js:3132: method p5.MediaElement.connect missing example
src/dom/dom.js:3181: method p5.MediaElement.disconnect missing example
src/webgl/material.js:270: method p5.resetShader missing example
src/webgl/p5.Camera.js:432: method p5.Camera.perspective missing example
src/webgl/p5.Camera.js:512: method p5.Camera.ortho missing example
src/webgl/p5.Camera.js:571: method p5.Camera.frustum missing example
src/webgl/p5.Camera.js:860: method p5.Camera.camera missing example
src/webgl/p5.Geometry.js:72: method p5.Geometry.computeFaces missing example
src/webgl/p5.Geometry.js:114: method p5.Geometry.computeNormals missing example
src/webgl/p5.Geometry.js:153: method p5.Geometry.averageNormals missing example
src/webgl/p5.Geometry.js:174: method p5.Geometry.averagePoleNormals missing example
src/webgl/p5.Geometry.js:267: method p5.Geometry.normalize missing example
Warning: EACCES: permission denied, unlink 'docs/reference/data.json' Use --force to continue.

Aborted due to warnings.
npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! p5@1.0.0 grunt: `grunt`
npm ERR! Exit status 6
npm ERR! 
npm ERR! Failed at the p5@1.0.0 grunt 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!     /home/eswar/.npm/_logs/2020-03-20T11_09_38_251Z-debug.log
@Eswaraprasadp Eswaraprasadp added the bug label Mar 20, 2020
@welcome

This comment has been minimized.

Copy link

@welcome welcome bot commented Mar 20, 2020

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

@DivyamAhuja

This comment has been minimized.

Copy link
Contributor

@DivyamAhuja DivyamAhuja commented Mar 20, 2020

@Eswaraprasadp What's the version of node and npm that you are using

@Eswaraprasadp

This comment has been minimized.

Copy link
Author

@Eswaraprasadp Eswaraprasadp commented Mar 20, 2020

@DivyamAhuja I am using npm 6.12.0 and node v8.10.0

@stalgiag

This comment has been minimized.

Copy link
Contributor

@stalgiag stalgiag commented Mar 22, 2020

This looks like a permissions issue. I would update node and also make sure that you are logged into an account that has read/write permissions to the p5 source folders.

@stalgiag stalgiag added area:build and removed bug labels Mar 22, 2020
@Eswaraprasadp

This comment has been minimized.

Copy link
Author

@Eswaraprasadp Eswaraprasadp commented Mar 31, 2020

Hi @stalgiag , I apologize for the late reply. I tried building as a root user and updated Node to v12.16.1., but I am still experiencing the same build error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.