Answer the question
In order to leave comments, you need to log in
How to work with node.js via snap?
On a laptop of the 11th year, Debian 32bit is installed, 64 is not installed. You need to install plugins for VSCode that require npm. Installing node.js on the laptop did not work except through the snap package. But now it's not clear how to run npm there.
installed node 8.16.0 and can run scripts with command snap run node ./example.js
snap run npm gives error:
error: cannot find current revision for snap npm: readlink /snap/npm/current: no such file or directory
Answer the question
In order to leave comments, you need to log in
Move from comment to answer then. Mark correct, if not difficult.
You somehow strange turnips of the node are registered. It should be something like this:
Indicating the version (I have ubunta)
Delete the node, delete the turnips. There should be files in /etc/apt/sources.list.d or lines in /etc/apt/sources.list
Install again following the instructions:
https://github.com/nodesource/distributions#instal...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question