Discusión:Npm
Apariencia
{{Node.js = | Node -v {{cd sample-embedded-app = | proyecto.4t-app {{npm init -y = | 4TappMEX.json {{npm install --sabe react, react-dom next = | Next.js "scaffold" React Instalar React, ReactDomy Next.js
{{pages/index.js =
| {/} /pages/index.js cponst Index = () => (
Sample app using React and Next.js
);
{{"Scripts" {/} / package.json
{ "scripts": {
"test":"echo \"Error:no test specified\" && exit 1"
"scripts": {
"test":"echo \"Error:no test specified\" && exit 1" "dev": "next", "build": "next build", "start": "next start",
}
}
Npm_rundev http:localhost:300