-
Notifications
You must be signed in to change notification settings - Fork 272
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 on linux #10
Comments
I'm also on Ubuntu 18.04 and am getting a similar error. I've tried this both with node V8.1.0 & 12.18.2 and a similar issue seems to occur. """
2020/07/14 07:53:52.946041 cmd_run.go:918: WARNING: cannot create user data directory: cannot create "/nonexistent/snap/node/2799": mkdir /nonexistent: permission denied npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
I've also just tried the local install suggested at: #11 I ran: And end up with a similar error again:
|
Ok, I've finally pinpointed the issue—it has to do with the downloads-folder module which fails to install on some systems. Will see about switching that out with another module that has the same functionality, if possible. |
Should be sorted in v1.11.9, if you could try to reinstall it globally (or locally if you're using it that way) like so: npm install [email protected] --global If any users are running into problems with the automatic Downloads folder resolution, you may want to set an environment variable, see here. Please let me know if that fixes it for you. |
That seems to have worked for me. Thanks! |
It has worked for me. |
OS ubuntu 18.04
Have no problem install other npm packages
This is the error:
``
sudo npm install canvas-sketch-cli --global
[sudo] password for shardul:
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
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]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
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.
/usr/bin/canvas-sketch -> /usr/lib/node_modules/canvas-sketch-cli/src/index.js
/usr/bin/canvas-sketch-cli -> /usr/lib/node_modules/canvas-sketch-cli/src/index.js
/usr/bin/canvas-sketch-gif -> /usr/lib/node_modules/canvas-sketch-cli/src/ffmpeg-gif.js
/usr/bin/canvas-sketch-mp4 -> /usr/lib/node_modules/canvas-sketch-cli/src/ffmpeg-mp4.js
prebuild-install WARN install No prebuilt binaries found (target=12.16.1 runtime=node arch=x64 libc= platform=linux)
gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
gyp ERR! System Linux 5.3.0-40-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/canvas-sketch-cli/node_modules/registry-js
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/canvas-sketch-cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
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! /home/shardul/.npm/_logs/2020-05-15T18_00_39_802Z-debug.log
``
The text was updated successfully, but these errors were encountered: