Hello, I upgraded from v1.12.1 to v1.16.0 after importing things from mybb to nodebb.
After upgrade, whenever I go into admin plugin page
(http://localhost:4567/admin/extend/plugins), log generates following error:
2020-12-25T17:06:46.163Z [4567/4022] - error: Error: ENOENT: no such file or directory, open '/home/myid/nodebb/node_modules/nodebb-plugin-require/plugin.json'
2020-12-25T17:06:46.643Z [4567/4022] - error: Error: ENOENT: no such file or directory, open '/home/myid/nodebb/node_modules/nodebb-plugin-require/plugin.json'
It generates same message 2 times each time I go to that page.
Following is code in nodebb/node_modules/nodebb-plugin-require/plugin.json:
{
"_from": "nodebb-plugin-require@^0.0.6",
"_id": "[email protected]",
"_inBundle": false,
"_integrity": "sha512-sa3lhcrDsvgo/IwtluW9VrCXECEDb7e9QRSI1Rmdc4+Smnkuzyf0xWY0GVXSU3L8XWPDTztKcnxR9RRo6E2x+A==",
"_location": "/nodebb-plugin-require",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "nodebb-plugin-require@^0.0.6",
"name": "nodebb-plugin-require",
"escapedName": "nodebb-plugin-require",
"rawSpec": "^0.0.6",
"saveSpec": null,
"fetchSpec": "^0.0.6"
},
"_requiredBy": [
"/nodebb-plugin-import"
],
"_resolved": "https://registry.npmjs.org/nodebb-plugin-require/-/nodebb-plugin-require-0.0.6.tgz",
"_shasum": "14c7642996afef7a504c34e8a54d5753e5bd55f3",
"_spec": "nodebb-plugin-require@^0.0.6",
"_where": "/home/myid/nodebb/node_modules/nodebb-plugin-import",
"author": {
"name": "https://github.com/akhoury"
},
"bugs": {
"url": "https://github.com/akhoury/nodebb-plugin-require/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Easily require NodeBB/src modules from within any plugin when running that as a stand-alone script",
"homepage": "https://github.com/akhoury/nodebb-plugin-require#readme",
"license": "MIT",
"main": "index.js",
"name": "nodebb-plugin-require",
"nbbpm": {
"compatibility": "*",
"index": false
},
"repository": {
"type": "git",
"url": "git+https://github.com/akhoury/nodebb-plugin-require.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "0.0.6"
}
I used following commands when upgrading (Ubuntu 18.04.4 LTS):
nvm install v14.15.3 # In order to upgrade node.js version to install higher nodebb version
nvm use v14.15.3 # In order to upgrade node.js version to install higher nodebb version
nvm alias default v14.15.3 # In order to upgrade node.js version to install higher nodebb version
git fetch
git reset --hard origin/v1.16.x
./nodebb reset plugins # only if it generates "Error: EMFILE: too many open files" error while upgrading
./nodebb reset themes # only if it generates "Error: EMFILE: too many open files" error while upgrading
./nodebb upgrade
Thank you very much.