Run isn't configured. Try adding a .replit and configuring it

Hello guys, I have an error here, I want to learn how to work with canvas and for this I need to implement some changes in replit.nix, I did this and then the following error followed:

nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
       b) for `nixos-rebuild` you can add ‘nodejs-16.20.0’ to
          `nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
          like so:

              nixpkgs.config.permittedInsecurePackages = [

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
          ‘nodejs-16.20.0’ to `permittedInsecurePackages` in
          ~/.config/nixpkgs/config.nix, like so:

              permittedInsecurePackages = [

I’ve been trying to fix this for 3 days now! My replit.nix file and .replit file.


{ pkgs }: {
  deps = [


entrypoint = "index.js"
modules = ["nodejs-16.20.2"]
hidden = [".config", "package-lock.json"]

channel = "stable-22_11"

language = "nodejs"

command = "node index.js"
deploymentTarget = "cloudrun"
ignorePorts = false

I will be very grateful for your help!!!

Hey, @limpotopsd welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:


the deps list in replit.nix should usually be empty if there is a modules variable in .replit.
You say that you would like to work with canvas and you needed to make some changes in replit.nix, what changes do you need to make? Also, can you direct me to some resources about it (I have no experience in NodeJS)?

1 Like