A
A
Alexander2019-11-02 20:34:56
Debian
Alexander, 2019-11-02 20:34:56

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

I would like to run npm and node without snap and I'm not sure if VSCode will pick up plugins installed via snap
How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Grachunov, 2019-11-03
@anudas

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 question

Ask a Question

731 491 924 answers to any question