所以我对这种类型的东西真的很陌生。运行我的“npm start”命令时,它会不断出现以下错误:
[ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/rest/RequestHandler' is not defined by "exports" in /root/InviteManagerV2/node_modules/eris/package.json
我已经多次查找错误并且“删除所有文件并重新安装”没有用,更新也没有。你们对我如何解决这个问题有任何想法吗?任何帮助都会很棒!
这是我的启动脚本:
"scripts": {
"start": "cross-env NODE_ENV=dev node scripts/dev-run.js",
"debug": "cross-env NODE_ENV=dev node scripts/dev-run.js debug",
"build": "tsc",
"lint": "tslint --project tsconfig.json --config tslint.json --format stylish",
"format": "prettier --write \"src/**/*.ts\" \"docs/**/*.md\" \"README.md\" \"CHANGELOG.md\"",
"release": "npm run build && npm run docs && npm run format && standard-version",
"i18n": "node scripts/check-i18n.js",
"nxv": "node ./scripts/npm-exact-versions.js",
"docs": "node scripts/generate-docs.js"
},