在使用yarn
在devDependency
中构建具有Webpack作为package.json
的Node项目时,出现了一个错误(实际上是一个信息)。我使用Ubuntu 19.04:
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
package.json:
{
"name": "my-app","version": "1.0.0","description": "A new app.","main": "index.js","author": "John Doe","license": "MIT","dependencies": {
"@types/react": "16.9.11","@types/react-dom": "16.9.4","@types/react-router-dom": "5.1.2","bootstrap": "4.3.1","jquery": "3.4.1","popper.js": "1.16.0","react": "16.11.0","react-dom": "16.11.0","react-router-dom": "5.1.2"
},"devDependencies": {
"typescript": "3.7.2","webpack": "4.41.2"
},"scripts": {
"develop": "webpack-dev-server --mode development --open --port 8081 --host 0.0.0.0 --config webpack.dev.config.js","build": "webpack --mode production --config webpack.prod.config.js"
}
}
如果我再次点击yarn
,info
不会再次出现。
节点版本:v13.1.0
纱线版本:1.19.1
这到底是什么意思?有缺少的零件吗?可以忽略吗?