Closed Painatalman closed 3 years ago
Since we can't set now dev
as the dev
script for package.json
, we can define a custom script called now
:
"scripts": {
"now": "now dev"
}
@Painatalman Sorry for the enormous delay 🙏 Instead of your solution, can you try simply running npm run dev
? It should be able to run a localhost version without needing to install now
or anything else globally.
@mcoquet I can confirm I can run the project "now" (pun intended). Closing the issue.
I tried to run the app locally (with
now dev
), but I got this error:Running the 'now' command, on the other hand, asks me for a login, but am I supposed to have an account to run the project locally?
Steps to reproduce
In the root project folder:
npm install
npm install -g now
now dev
now
Installed software and packages
Possible Solution
Replacing
now
version 18.0 with its version 16.7.3 seems to solve the issue:Check this reply to Now issue 3767 for details.
Suggestions
I suggest we either:
now
version to install globally on the project setupnpm
command inpackage.json
:Personally, I prefer the second option, as it removes the need for a global dependency.