Can't create contract types

I am trying to follow this fuels-ts tutorial to create contract types to use it for frontend and this error I get

/Users/lidia/projects/my-fuel-dapp/frontend/node_modules/.bin/fuels: line 1: syntax error near unexpected token `('
/Users/lidia/projects/my-fuel-dapp/frontend/node_modules/.bin/fuels: line 1: `"use strict";var r=require("@fuel-ts/abi-typegen/cli"),n=require("@fuel-ts/versions"),e=require("@fuel-ts/versions/cli"),i=require("commander");function s(t){let o=new i.Command;o.name("fuels"),o.version(n.versions.FUELS),o.command("versions").description("check for version incompatibilities").action(e.run);let m=o.command("typegen").description("generate typescript from contract abi json files");(0,r.configureCliOptions)(m),o.parse(t)}s(process.argv);'

I have check contract for syntax errors and even another contract code as well but error is same

2 Likes