我使用了 npm install express-validator,我检查了我的拼写 100 次,但是每当我安装(我什至一遍又一遍地删除和重新安装)时,在 package.json 的依赖项上,我不断收到“express-validator”:“文件:express-validator”。
我收到这种错误
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please
install the latest version of pug instead of jade
npm WARN deprecated constantinople@3.0.2: Please update to at least
constantinople 3.1.1
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN passport-practice@1.0.0 No description
npm WARN passport-practice@1.0.0 No repository field.
其他模块安装成功
"body-parser": "^1.18.2",
"connect-flash": "^0.1.1",
"constantinople": "^3.1.2",
"cookie-parser": "^1.4.3",
"express": "^4.16.3",
"express-handlebars": "^3.0.0",
"express-session": "^1.15.6",
"express-validator": "file:express-validator",
"jstransformer": "^1.0.0",
"mongoose": "^5.0.17",
"passport": "^0.4.0",
"passport-http": "^0.3.0",
"passport-local": "^1.0.0",
"pug": "^2.0.3",
"validator": "^10.1.0"