We no longer recommend install the strapi package globally and instead suggest you use the built-in script within the package.json instead. So something like PORT=1337 yarn develop or PORT=1337 npm run develop. With global installed strapi you could have multiple problems in the future.