TIL how to run npm that's inside a child folder
POSTED ON:
TAGS: npm
└── Root folder/
├── random-folder/
│ └── files
├── app/
│ ├── /dist
│ ├── /src
│ ├── webpack.js
│ └── package.json
├── another-folder/
│ └── other files
├── ...
└── package.json
- You're in your root folder.
- You want to run the app/package.json
- How?
"scripts": {
"postinstall": "npm install --prefix ./app",
"build:app": "npm run build --prefix ./app",
"serve:app": "npm run serve --prefix ./app"
},
Related TILs
Tagged: npm