Mingw-packages: npm not found via pacman

Created on 19 Dec 2018  路  8Comments  路  Source: msys2/MINGW-packages

Hello,

pacman -S mingw-w64-x86_64-npm doesn't work.

I try to use the PKGBUILD file but I have a lot of problems with deps.

I try with nvm but I can't compile nodejs 8.14.1

How can I have node and npm with msys2 ?

Thanks,

Most helpful comment

@AlexLeung : pls read the first few wiki pages about the MSYS/mingw32/mingw64 subsystems:
https://github.com/msys2/msys2/wiki/MSYS2-introduction

If you wan to use a mingw64 package like mingw-w64-x86_64-nodejs, you need to start it from the mingw64 subsystem, NOT from the MSYS2 subsystem

All 8 comments

There's no npm package for MSYS2/MINGW available atm. You have to install mingw-w64-x86_64-nodejs instead (8.11.1 release 5). It comes with npm.

For some reason when I run pacman -S mingw-w64-x86_64-nodejs, the package installs, but bash cannot find the commands node or npm even after restarting the MSYS2 shell.

Solution: add the following line to ~/.bash_profile
export PATH=/mingw64/bin:$PATH

@AlexLeung : pls read the first few wiki pages about the MSYS/mingw32/mingw64 subsystems:
https://github.com/msys2/msys2/wiki/MSYS2-introduction

If you wan to use a mingw64 package like mingw-w64-x86_64-nodejs, you need to start it from the mingw64 subsystem, NOT from the MSYS2 subsystem

Thanks

I have an old installation of MSYS2 (of a few years). When I try to install node I get this error:

$ pacman -S mingw-w64-x86_64-nodejs
eroare: nu s-a g膬sit 葲inta: mingw-w64-x86_64-nodejs

The last line, translated, would be error: target not found: mingw-w64-x86_64-nodejs.

I also tried with mingw-w64-x86_64-node and the same result.

What can I do to make MSYS2 work with node? Should I reinstall MSYS2?

Thank you.

Sorry for the spam. I figured it out here. I think I will install Ubuntu, or the Windows version of node and npm.

Thank you.

Yeah as much as I like what MSYS2 is going for, I ended up switching to Ubuntu and now everything just works.

Was this page helpful?
0 / 5 - 0 ratings