No package.json in the root folder anymore
-
Package.json is missing in the Root folder when checking out a fresh copy. I allways do a fresh install when updating and copy the settings and files.
Is the new install instructions to copy package.json to the root and then run npm install --production ?
We want the node_modules/ folder in the root right? Not in the install directory?
My flow
- git clone https://github.com/NodeBB/NodeBB.git
- git checkout v1.7.x (1.6.x, 1.7.x, 1.8.x)
- rm -rf .git*
- cp -i install/package.json .
Then
npm install --productionWhat does the --production flag do? Never used it before!
-
git clone https://github.com/nodebb/nodebb.git -b v1.7.x cp old_config.json nodebb/config.json cd nodebb ./nodebb upgrade
./nodebb
automatically copiespackage.json
and installs dependencies, so no need fornpm install
at all. -
Ok, Thanks
Copyright © 2024 NodeBB | Contributors