Talk:Node.js: Difference between revisions
imported>Makefu No edit summary |
imported>L0b0 Remove my old comments (probably no longer relevant) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Actually, yarn2nix can be found under `pkgs.yarn2nix-moretea`, however i also think that `pkgs.nodePackages.node2nix` should be used. I am, however unsure how the path from node2nix to "deploy it on your nixos machine" is --[[User:Makefu|Makefu]] ([[User talk:Makefu|talk]]) 12:24, 26 February 2020 (UTC) | Actually, yarn2nix can be found under `pkgs.yarn2nix-moretea`, however i also think that `pkgs.nodePackages.node2nix` should be used. I am, however unsure how the path from node2nix to "deploy it on your nixos machine" is --[[User:Makefu|Makefu]] ([[User talk:Makefu|talk]]) 12:24, 26 February 2020 (UTC) | ||
Can some one add code below to npm -g install section. I don't know that there's bin directory in node modules, or a lib one. I entirely missed suggestion to take care of path since there's no code to copy. | |||
export PATH=~/.npm-global/bin:$PATH | |||
export NODE_PATH=~/.npm-global/lib/node_modules |
Latest revision as of 23:46, 21 August 2023
yarn2nix not currently in nixpkgs
As of 11/2019, yarn2nix is not included in nixpkgs, however node2nix is. So perhaps the current yarn2nix section should be omitted, augmented/replaced with a section on node2nix, or the section on yarn2nix amended to indicate how to install it.
Actually, yarn2nix can be found under `pkgs.yarn2nix-moretea`, however i also think that `pkgs.nodePackages.node2nix` should be used. I am, however unsure how the path from node2nix to "deploy it on your nixos machine" is --Makefu (talk) 12:24, 26 February 2020 (UTC)
Can some one add code below to npm -g install section. I don't know that there's bin directory in node modules, or a lib one. I entirely missed suggestion to take care of path since there's no code to copy. export PATH=~/.npm-global/bin:$PATH export NODE_PATH=~/.npm-global/lib/node_modules