rob*_*pin 5 laravel imagemin npm-install ubuntu-16.04 laravel-echo
npm -v 6.4.1 nvm --version 0.33.11
当我安装laravel-echo(在ubuntu16.04中)
npm i --save socket.io-client
Run Code Online (Sandbox Code Playgroud)
我收到了错误警告
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN img-loader@3.0.0 requires a peer of imagemin@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ socket.io-client@2.1.1
added 26 packages from 21 contributors and audited 11731 packages in 35.934s
found 0 vulnerabilities
Run Code Online (Sandbox Code Playgroud)
所以我继续安装它们
npm i imagemin
Run Code Online (Sandbox Code Playgroud)
但我得到了自己错过的错误?
I want to install the imagemin but it says itself missing?
npm WARN img-loader@3.0.0 requires a peer of imagemin@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ imagemin@6.0.0
updated 1 package and audited 12680 packages in 30.571s
found 0 vulnerabilities
Run Code Online (Sandbox Code Playgroud)
我也试试
$npm install -g npm-install-peers
$npm-install-peers
Run Code Online (Sandbox Code Playgroud)
节目
This package doesn't seem to have any peerDependencies
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1602 次 |
| 最近记录: |