What | Removed | Added |
---|---|---|
Summary | npm installation is broken | npm: installation doesn't have preconfigured user prefix |
npm can be install with `zypper in npm16` or `zypper in npm-default` on TW, and then you'll have npm from nodejs16. You need to configure your own prefix. With npm, you always had to do initial configuration, cd ~ mkdir my_npm_prefix npm config set prefix="$HOME/my_npm_prefix" export PATH="$PATH":$HOME/my_npm_prefix/bin npm install less -g There is not really a nice way of doing this "out of the box" as it's not nice to clobber user files and the PATH is then not set which makes -g installs moot. So, don't forget to add PATH to your .profile Furthermore, the entire global install is also legacy. Use `npx` instead (and ignore the install section there - you already have it :-) https://www.npmjs.com/package/npx