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

NVM complains about not having the correct version installed yet #130

Open
sc0ttkclark opened this issue Sep 10, 2022 · 0 comments
Open

Comments

@sc0ttkclark
Copy link
Contributor

While nvm use now works in 1.0.0+, but it also complains that the version is not installed with NVM yet. This is likely because of other errors with permissions on the /usr/local/bin/.nvm/ directory involved (see full output).

Here's the error that it ends up with after all of the attempts to download/install:

[npm run build-production:target] You need to run "nvm install 16.13.2" to install it before using it.

Full command/output:

sc0ttkclark@SKC-Mac-Studio plugins % slic npm run build-production
slic version 1.1.2 - StellarWP local testing and development tool

Using pods

[npm run build-production:target] N/A
[npm run build-production:target] Downloading and installing node v16.13.2...
[npm run build-production:target] Detected that you have 5 CPU core(s)
[npm run build-production:target] Running with 4 threads to speed up the build
[npm run build-production:target] Found '/var/www/html/wp-content/plugins/pods/.nvmrc' with version <16.13.2>
[npm run build-production:target] 
[npm run build-production:target] mkdir: cannot create directory '/usr/local/bin/.nvm/.cache/bin/node-v16.13.2-linux-x64': Permission denied
[npm run build-production:target] creating directory /usr/local/bin/.nvm/.cache/bin/node-v16.13.2-linux-x64/files failed
[npm run build-production:target] Downloading https://nodejs.org/dist/v16.13.2/node-v16.13.2-linux-x64.tar.xz...
[npm run build-production:target] #=#=- #       #                                                                                                                                                                                           Warning: Failed to create the file 
[npm run build-production:target] Warning: /usr/local/bin/.nvm/.cache/bin/node-v16.13.2-linux-x64/node-v16.13.2-l
[npm run build-production:target] Warning: inux-x64.tar.xz: No such file or directory
[npm run build-production:target] curl: (23) Failure writing output to destination
[npm run build-production:target] 
[npm run build-production:target] > [email protected] build-production
[npm run build-production:target] > npm run webpack-production && npm run scss
[npm run build-production:target] 
[npm run build-production:target] Binary download from https://nodejs.org/dist/v16.13.2/node-v16.13.2-linux-x64.tar.xz failed, trying source.
[npm run build-production:target] grep: /usr/local/bin/.nvm/.cache/bin/node-v16.13.2-linux-x64/node-v16.13.2-linux-x64.tar.xz: No such file or directory
[npm run build-production:target] Provided file to checksum does not exist.
[npm run build-production:target] Binary download failed, trying source.
[npm run build-production:target] mkdir: cannot create directory '/usr/local/bin/.nvm/.cache/src': Permission denied
[npm run build-production:target] creating directory /usr/local/bin/.nvm/.cache/src/node-v16.13.2/files failed
[npm run build-production:target] Downloading https://nodejs.org/dist/v16.13.2/node-v16.13.2.tar.xz...
[npm run build-production:target] #=#=- #       #                                                                                                                                                                                           Warning: Failed to create the file                                                                                                                                                                                                         
[npm run build-production:target] Warning: /usr/local/bin/.nvm/.cache/src/node-v16.13.2/node-v16.13.2.tar.xz: No 
[npm run build-production:target] Warning: such file or directory
[npm run build-production:target] curl: (23) Failure writing output to destination
[npm run build-production:target] 
[npm run build-production:target] Binary download from https://nodejs.org/dist/v16.13.2/node-v16.13.2.tar.xz failed, trying source.
[npm run build-production:target] grep: /usr/local/bin/.nvm/.cache/src/node-v16.13.2/node-v16.13.2.tar.xz: No such file or directory
[npm run build-production:target] Provided file to checksum does not exist.
[npm run build-production:target] N/A: version "16.13.2 -> N/A" is not yet installed.
[npm run build-production:target] 
[npm run build-production:target] You need to run "nvm install 16.13.2" to install it before using it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant