volta icon indicating copy to clipboard operation
volta copied to clipboard

ENOENT: no such file or directory, chmod

Open volkanunsal opened this issue 4 years ago • 4 comments

I'm getting this error when I install a particular package:

ENOENT: no such file or directory, chmod '/Users/newuser/.volta/tmp/image/packages/.tmpwBFvnB/lib/node_modules/@airtable/blocks-cli/node_modules/loose-envify/cli.js'

How to replicate:

volta install @airtable/blocks-cli

Complete output:

VOLTA_LOGLEVEL=debug RUST_BACKTRACE=full  volta install @airtable/blocks-cli --verbose
[verbose] Acquiring lock on Volta directory: /Users/newuser/.volta/volta.lock
[verbose] Found default configuration at '/Users/newuser/.volta/tools/user/platform.json'
[verbose] [email protected] has already been fetched, skipping download
[verbose] [email protected] has already been fetched, skipping download
[verbose] [email protected] has already been fetched, skipping download
[verbose] Installing @airtable/blocks-cli with command: "npm" "install" "--global" "--loglevel=warn" "--no-update-notifier" "--no-audit" "@airtable/blocks-cli"
[verbose] [install stderr]
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
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]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /Users/newuser/.volta/tmp/image/packages/.tmpwBFvnB/lib/node_modules/@airtable/blocks-cli/node_modules/loose-envify/cli.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/newuser/.volta/tmp/image/packages/.tmpwBFvnB/lib/node_modules/@airtable/blocks-cli/node_modules/loose-envify/cli.js'
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/newuser/.npm/_logs/2021-11-27T19_47_45_429Z-debug.log

[verbose] [install stdout]

[verbose] Unlocking Volta Directory
error: Could not install package '@airtable/blocks-cli'

Please confirm the package is valid and run with `--verbose` for more diagnostics.
[verbose] No custom hooks found

volkanunsal avatar Nov 27 '21 19:11 volkanunsal

Hi @volkanunsal – sorry you're hitting this. Can you add some info about what operating system (and version) and as well as Volta version you're using? One of us will try to take a look at some point and see if we can reproduce!

chriskrycho avatar Dec 11 '21 17:12 chriskrycho

Hey @chriskrycho. I'm using late model Mac Air with M1 processor.

volkanunsal avatar Dec 11 '21 18:12 volkanunsal

Using latest version of Volta. OS is Big Sur.

volkanunsal avatar Dec 11 '21 18:12 volkanunsal

seeing this as well

3commascapital avatar Mar 21 '22 22:03 3commascapital