mattdesl / canvas-sketch

[beta] A framework for making generative artwork in JavaScript and the browser.
MIT License
4.97k stars 393 forks source link

error install canvas sketch #170

Closed carlosantanart closed 1 year ago

carlosantanart commented 1 year ago

Hi... I can´t install tha package, anybody want´s to help me pls.... this is the message from terminal:

npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules/canvas-sketch-cli npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/canvas-sketch-cli' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/canvas-sketch-cli'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/canvas-sketch-cli' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/carlossantanabravo/.npm/_logs/2022-10-02T17_36_45_677Z-debug-0.log MacBook-Pro-de-carlos:~ carlossantanabravo$

marcelino-borges commented 1 year ago

Hey @carlosantanart, you're in a Mac, right? I guess you only need to use sudo in front of the npm install

carlosantanart commented 1 year ago

Hi... ... yes I´m in a MAC

Carlos Santana / Carlosantanart website http://www.carlosantanart.com / instagram https://www.instagram.com/carlosantan69/?hl=es-la / twitter https://twitter.com/Carlosantanart1

El mar, 4 oct 2022 a las 23:40, Marcelino Borges @.***>) escribió:

Hey @carlosantanart https://github.com/carlosantanart, you're in a Mac, right? I guess you only need to use sudo front of the npm install

— Reply to this email directly, view it on GitHub https://github.com/mattdesl/canvas-sketch/issues/170#issuecomment-1267608921, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3MOANSXSYWKOEZZ6P7LHRLWBSP5ZANCNFSM6AAAAAAQ272LTM . You are receiving this because you were mentioned.Message ID: @.***>

carlosantanart commented 1 year ago

Hi... but how I can do it.. ,, can you explain me pls.. thanks a lot

marcelino-borges commented 1 year ago

Hi... ... yes I´m in a MAC Carlos Santana / Carlosantanart website http://www.carlosantanart.com / instagram https://www.instagram.com/carlosantan69/?hl=es-la / twitter https://twitter.com/Carlosantanart1 El mar, 4 oct 2022 a las 23:40, Marcelino Borges @.>) escribió: Hey @carlosantanart https://github.com/carlosantanart, you're in a Mac, right? I guess you only need to use sudo front of the npm install — Reply to this email directly, view it on GitHub <#170 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3MOANSXSYWKOEZZ6P7LHRLWBSP5ZANCNFSM6AAAAAAQ272LTM . You are receiving this because you were mentioned.Message ID: @.>

You are probably running this in the prompt: npm install canvas-sketch -g, right?

So now you try with a sudo in front of the command, like this: sudo npm install canvas-sketch -g. Then you will be probably prompted for your system password, and you're done

ysidro commented 1 year ago

Error to install on MAC

npm ERR! code ENOENT npm ERR! syscall stat npm ERR! path /Users/user/.npm/_cacache/content-v2/sha512/33/15/f41706c28e9cb39bf8e1e2a580888ae654076bc8e442c92b0ccecad389e873e7087a7a1b21f142acd21ad8819a3e20e04b8434efdb2a8ef9b34160a76fa0 npm ERR! errno ENOENT npm ERR! enoent Invalid response body while trying to fetch https://registry.npmjs.org/buffer-xor: ENOENT: no such file or directory, stat '/Users/user/.npm/_cacache/content-v2/sha512/33/15/f41706c28e9cb39bf8e1e2a580888ae654076bc8e442c92b0ccecad389e873e7087a7a1b21f142acd21ad8819a3e20e04b8434efdb2a8ef9b34160a76fa0' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /Users/user/.npm/_logs/2023-03-27T16_02_20_872Z-debug-0.log