can anyone please help me with this issue? I had node installed then I uninstalled and rm -rf the file as well following some online suggestions. Then now I am trying to install it like i had done before using nvm install node
but now i am getting the following error:
Downloading and installing node v15.2.1...
Local cache found: ${NVM_DIR}/.cache/bin/node-v15.2.1-linux-x64/node-v15.2.1-linux-x64.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/bin/node-v15.2.1-linux-x64/node-v15.2.1-linux-x64.tar.xz
mv: cannot move '/home/jan/.nvm/.cache/bin/node-v15.2.1-linux-x64/files/bin' to '/home/jan/.nvm/versions/node/v15.2.1/bin': Directory not empty
mv: cannot move '/home/jan/.nvm/.cache/bin/node-v15.2.1-linux-x64/files/include' to '/home/jan/.nvm/versions/node/v15.2.1/include': Directory not empty
mv: cannot move '/home/jan/.nvm/.cache/bin/node-v15.2.1-linux-x64/files/lib' to '/home/jan/.nvm/versions/node/v15.2.1/lib': Directory not empty
mv: cannot move '/home/jan/.nvm/.cache/bin/node-v15.2.1-linux-x64/files/share' to '/home/jan/.nvm/versions/node/v15.2.1/share': Directory not empty
Binary download failed, trying source.
Local cache found: ${NVM_DIR}/.cache/src/node-v15.2.1/node-v15.2.1.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v15.2.1/node-v15.2.1.tar.xz
$>./configure --prefix=/home/jan/.nvm/versions/node/v15.2.1 <
Traceback (most recent call last):
File "./configure", line 20, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
nvm: install v15.2.1 failed!
Thanks
To get this version, you can use the apt package manager. Refresh your local package index by typing:
sudo apt-get update
Install Node.js from the repositories:
sudo apt-get install nodejs
To check which version of Node.js you have installed after these initial steps, type:
nodejs -v
You just need to uninstall that version of node via nvm before reinstalling it.
nvm uninstall 15.2.1
nvm install 15.2.1
Related
I tried to install latest version od node with
'nvm install node'
After that when I use command 'node' I have message:
-bash: /home/pi/.nvm/versions/node/v16.14.2/bin/node: No such file or directory
When I try:
'sudo apt-get install nodejs-legacy'
I have message:
'Package nodejs-legacy is not available, but is referred to by another package.'
What am I doing wrong?
I Tried to install nodejs using nvm on ubuntu 18.04. But everytime it's throwing following error stack
pasindu#pasindu-HP-EliteBook-850-G7-Notebook-PC:~$ nvm install 0.10.35
Downloading and installing node v0.10.35...
Downloading https://nodejs.org/dist/v0.10.35/node-v0.10.35-linux-x64.tar.gz...
Warning: Failed to create the file
Warning: /home/pasindu/.nvm/.cache/bin/node-v0.10.35-linux-x64/node-v0.10.35-li
Warning: nux-x64.tar.gz: Permission denied
curl: (23) Failure writing output to destination
Binary download from https://nodejs.org/dist/v0.10.35/node-v0.10.35-linux-x64.tar.gz failed, trying source.
grep: /home/pasindu/.nvm/.cache/bin/node-v0.10.35-linux-x64/node-v0.10.35-linux-x64.tar.gz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Detected that you have 12 CPU core(s)
Running with 11 threads to speed up the build
Downloading https://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz...
Warning: Failed to create the file
Warning: /home/pasindu/.nvm/.cache/src/node-v0.10.35/node-v0.10.35.tar.gz:
Warning: Permission denied
curl: (23) Failure writing output to destination
Binary download from https://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz failed, trying source.
grep: /home/pasindu/.nvm/.cache/src/node-v0.10.35/node-v0.10.35.tar.gz: No such file or directory
Provided file to checksum does not exist.
It may be the problem of snap curl, see here, cos I installed curl with snap at first and always encounter this problem, then I removed curl with sudo snap remove curl and reinstall it with sudo apt install curl, my current curl version is 7.68.0. then solved it.
I had to clear the cache:
nvm cache clear.
I've got the error after I tried to install a version of Node, which I've tried to install already, however the installation processs failed at the first time due disconnecting from the internet.
I met an error while doing "brew cleanup":
$ brew cleanup
Warning: Skipping opam: most recent version 2.0.3 not installed
Warning: Skipping python: most recent version 3.7.2_2 not installed
Warning: Skipping sqlite: most recent version 3.27.1 not installed
Error: Permission denied # unlink_internal - /usr/local/lib/node_modules/#angular/cli/node_modules/.bin/in-install
Does anyone know how to fix this?
PS: brew link node returns an error, though I don't know if it is related.
$ brew install node
Warning: node 11.9.0 is already installed, it's just not linked
You can use `brew link node` to link this version.
$ brew link node
Linking /usr/local/Cellar/node/11.9.0...
Error: Could not symlink include/node/common.gypi
Target /usr/local/include/node/common.gypi
already exists. You may want to remove it:
rm '/usr/local/include/node/common.gypi'
To force the link and overwrite all conflicting files:
brew link --overwrite node
To list all files that would be deleted:
brew link --overwrite --dry-run node
First fix permissions causing the error:
sudo chown -R "$(whoami)":admin /usr/local
On macOS Mojave, the chown command needs to be run on the specific directory, an example for the permissions issue in /usr/local/lib directory, this command would be
sudo chown -R "$(whoami)":admin /usr/local/lib
Then relink node with the --force option as directed:
brew link --overwrite node
This worked for me:
brew unlink node && brew link node
Hi I am trying to install nodejs in ubuntu 14 but getting following error.
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 62%E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 100%
dpkg: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory
E: Sub-process /usr/bin/dpkg returned an error code (2)
when trying to installing with software updated I am getting following error.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/aptdaemon/worker.py", line 300, in _process_transaction
not self.is_dpkg_journal_clean()):
File "/usr/lib/python3/dist-packages/aptdaemon/worker.py", line 1111, in is_dpkg_journal_clean
for dentry in os.listdir(status_updates):
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/dpkg/updates/'
I had this problem previously, I removed any variables equivalent to zero and it solved it, perhaps try that.
Add the Node.js-maintained repositories to your Ubuntu package source list with this command:
curl -sL https://deb.nodesource.com/setup | sudo bash -
Then install Node.js with apt-get:
sudo apt-get install nodejs
Optionally we can create a symbolic link for node (for reasons mentioned earlier):
sudo ln -s /usr/bin/nodejs /usr/bin/node
Using this install option, we end up with newer versions of Node.js and npm:
$ node -v
$ npm -v
to check node version and npm version
I suggest installing nvm (node version manager)
https://github.com/creationix/nvm
it allows you to install and use ANY node version, and this may be way better, because ubuntu is bound to one specific version. In web development, every project is prepared using dofferen node, so switching it might be necessary
$ nvm install stable
######################################################################## 100.0%
mv: cannot move ‘/home/me/.nvm/bin/node-v0.12.7-linux-x64’ to ‘/home/me/.nvm/versions/v0.12.7’: No such file or directory
Binary download failed, trying source.
######################################################################## 100.0%
File "./configure", line 362
'''
^
SyntaxError: Missing parentheses in call to 'print'
nvm: install v0.12.7 failed!
This is on a manjaro linux box, running nvm version 0.20.0.
I tried directly with
nvm install v0.12.7 or
nvm install 0.12.7 and also
nvm install 0.12.6
all reported the same error.
I also tried re-running the nvm installation script, but it told me it already had nvm installed. I am a bit reluctant to delete .nvm and re-install it (for no obvious reason ;) )
I don't know what causes the first problem:
mv: cannot move ‘/home/me/.nvm/bin/node-v0.12.7-linux-x64’ to ‘/home/me/.nvm/versions/v0.12.7’: No such file or directory
Binary download failed, trying source.
But then it tries from source and tries to compile, using python. The error :
SyntaxError: Missing parentheses in call to 'print'
is from python - python3. By temporarily changin the symlink in manjaro from
/usr/bin/python -> python3 to
/usr/bin/python -> python2
I seam to have "solved" the issue....