【发布时间】:2019-06-07 04:49:20
【问题描述】:
我正在运行:npm install react-export-excel --save
我收到以下错误:
我在安装 jspdf 时收到了同样的错误(我可以成功安装某些其他库,例如文件保护程序,我可以安装较低版本的 jspdf,即 1.4)。
这是我的 package.json 文件:
{
"name": "insurance_automation",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.18.0",
"babel-polyfill": "^6.26.0",
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.0",
"config": "^3.1.0",
"cors": "^2.8.5",
"express": "^4.17.1",
"file-saver": "^2.0.2",
"js-xlsx": "^0.8.22",
"jsonwebtoken": "^8.5.1",
"multer": "^1.4.1",
"mysql2": "^1.6.5",
"node": "^11.15.0",
"nodemailer": "^6.2.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-pdf": "^4.0.5",
"react-router-dom": "^5.0.0",
"react-scripts": "3.0.1",
"sequelize": "^5.8.6",
"universal-cookie": "^4.0.0",
"xlsx": "^0.14.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"server": "nodemon server",
"dev": "concurrently \"npm run server\" \"npm start\" "
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"concurrently": "^4.1.0",
"nodemon": "^1.19.1"
}
}
node版本低于12可以用nodemailer发邮件支持使用TLS v1.0或以下的邮件服务器,我猜。
【问题讨论】:
-
您需要显示完整的错误。好像你的 git 客户端有问题
-
这是完全错误。
标签: node.js reactjs npm npm-install