Created
March 22, 2020 17:48
-
-
Save msteen/8e3b987feecc98e0317383def42ce3fe to your computer and use it in GitHub Desktop.
NodeJS outside of Nix within NixOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
environment.systemPackages = with pkgs; [ nodejs-12_x ]; | |
environment.shellInit = '' | |
# Workaround for not being able to install packages globally. | |
export PATH="/opt/npm/bin:$PATH" | |
''; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
globalconfig = /opt/npm/npmrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prefix = /opt/npm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment