-
Notifications
You must be signed in to change notification settings - Fork 273
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
Can't install canvas-sketch-cli #11
Comments
What version of Node.js are you on? You may want to consider updating Node/npm on your system and then trying the install again. I was able to install just fine on Node 13.x. |
I was on Node version 8.16.2, I've just upgraded to 12.16.0 and have not tried again but I will as soon as I can. |
With node version 12.16.0 I have tried to reinstall with |
I just upgraded to 14.3.0 and it still gives me the exact same error |
That's a bit odd — npm uninstall registry-js --global
npm install canvas-sketch-cli --global You could also try installing it just locally for now: # go into a folder
cd my-cool-project
# create a package.json
npm init -y
# install locally
npm install canvas-sketch-cli --save-dev Once its installed locally, you can run the locally-installed version by prefixing your command with npx canvas-sketch sketch.js --new --open If that doesn't work, please let me know your macOS version. |
I'm on macOS Catalina Version 10.15.4 and got the same error as before :/ I am also getting the same error when I run: When I try and run I get: I really hope I can get this working, I am really looking forward to this course. Thank you for the assistance so far! |
Here is the error one more time in case something has changed that I am missing: npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'. No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'. No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'. gyp: No Xcode or CLT version detected!
prebuild-install WARN install No prebuilt binaries found (target=14.3.0 runtime=node arch=x64 libc= platform=darwin) No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'. No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'. gyp: No Xcode or CLT version detected! npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
im also getting the same error on Windows . |
Hi! I'm trying to run canvas-sketch but it returns "command not found" (I'm using MacOs Big Sur 11.5.2). I've tried the solution Matt provides above and other ones I found online: changing PATH, removing the "-bash" on the Shell tab from Terminal config. Any other ideas? Thanks! UPDATE: I was able to solve this. I installed it using SUDO instead and worked fine. |
Hi there, I have been having the same issues and was wondering if you could share the terminal input fix you used? Thanks in advance |
Sure! I used this: |
Thanks! Unfortunately this is still not working for me. i'll have to find some other work around for it. Thanks again |
UPDATE: This will work if it's done locally for me. but installing it globally is an issue |
this worked for me (MacBook Pro/monterey) thanks!!
|
I managed to install it locally, but if I run this command in git: "npx canvas-sketch sketch.js --new --open". It doesn't do anything. Git doesn't return anything. Can somebody help me, please? |
Hello,
I am having some difficulty installing canvas-sketch-cli. I've pasted the stack trace below:
`➜ npm install canvas-sketch-cli --global
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
/Users/lhill/.nvm/versions/node/v8.16.2/bin/canvas-sketch -> /Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/canvas-sketch-cli/src/index.js
/Users/lhill/.nvm/versions/node/v8.16.2/bin/canvas-sketch-cli -> /Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/canvas-sketch-cli/src/index.js
/Users/lhill/.nvm/versions/node/v8.16.2/bin/canvas-sketch-gif -> /Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/canvas-sketch-cli/src/ffmpeg-gif.js
/Users/lhill/.nvm/versions/node/v8.16.2/bin/canvas-sketch-mp4 -> /Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/canvas-sketch-cli/src/ffmpeg-mp4.js
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error:
gyp
failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/lhill/.nvm/versions/node/v8.16.2/bin/node" "/Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/canvas-sketch-cli/node_modules/fsevents
gyp ERR! node -v v8.16.2
gyp ERR! node-gyp -v v5.0.7
gyp ERR! not ok
prebuild-install WARN install No prebuilt binaries found (target=8.16.2 runtime=node arch=x64 libc= platform=darwin)
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error:
gyp
failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/lhill/.nvm/versions/node/v8.16.2/bin/node" "/Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/lhill/.nvm/versions/node/v8.16.2/lib/node_modules/canvas-sketch-cli/node_modules/registry-js
gyp ERR! node -v v8.16.2
gyp ERR! node-gyp -v v5.0.7
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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! /Users/lhill/.npm/_logs/2020-05-24T12_51_41_583Z-debug.log`
The log itself is quite long, 11110 lines, but at the end there was this error
11104 16957 error code ELIFECYCLE 11105 16958 error errno 1 11106 16959 error [email protected] install:
prebuild-install || node-gyp rebuild11107 16959 error Exit status 1 11108 16960 error Failed at the [email protected] install script. 11109 16960 error This is probably not a problem with npm. There is likely additional logging output above. 11110 16961 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: