zenierontop / bwe-nix

The BWE repo but its for nix,might be useless but who cares
MIT License
0 stars 0 forks source link

horrible issue with installing npm | offtopic #1

Open zenierontop opened 7 months ago

zenierontop commented 7 months ago

[127.*.0.1:22] [zenier@verntil:~/development/bwe-nix] 259μs $ npm i The program 'npm' is currently not installed. It is provided by several packages. You can install it by typing one of the following: nix-env -iA nixpkgs.nodejs-18_x.out nix-env -iA nixpkgs.elmPackages.nodejs.out nix-env -iA nixpkgs.nodejs-16_x.out

Or run it once with: nix-shell -p nodejs-18_x.out --run 'npm ...' nix-shell -p elmPackages.nodejs.out --run 'npm ...' nix-shell -p nodejs-16_x.out --run 'npm ...' [127..0.1:22] [NOENT] [zenier@verntil:~/development/bwe-nix] 3s 457981μs $ nix-env -iA nixpkgs.nodejs-16_x.out error: attribute 'nixpkgs' in selection path 'nixpkgs.nodejs-16_x.out' not found [127..0.1:22] [1] [zenier@verntil:~/development/bwe-nix] 96553μs $

zenierontop commented 7 months ago

PATCH FOUND: USE THE ONE TIME COMMAND, THIS HAPPENS WHEN YOUR NIX POLICY FUCKED UP nix-shell -p nodejs-18_x.out --run 'npm i'