我想从版本" 0.20.0"升级material-ui。到" v1.0.0-beta.26"使用命令" npm install --save material-ui @ next"

时间:2018-01-06 11:57:37

标签: reactjs material-ui

我收到以下错误。  npm install --save material-ui @ next npm WARN可选SKIPPING OPTIONAL DEPENDENCY:fsevents@1.1.2(node_modules / react-scripts / node_modules / fsevents): npm WARN可选SKIPPING OPTIONAL DEPENDENCY:错误:EACCES:权限被拒绝,重命名' /home/alokkumar/my-app2/node_modules/.staging/fsevents-3d031a97/node_modules/ajv' - > ' /home/alokkumar/my-app2/node_modules/.staging/ajv-eb0b6918' npm WARN可选SKIPPING OPTIONAL DEPENDENCY:fsevents@1.1.3(node_modules / fsevents): npm WARN可选SKIPPING OPTIONAL DEPENDENCY:错误:EACCES:权限被拒绝,重命名' /home/alokkumar/my-app2/node_modules/.staging/fsevents-56557f45/node_modules/ajv' - > ' /home/alokkumar/my-app2/node_modules/.staging/ajv-bc0c451c'

npm ERR! path / home / alokkumar / my-app2 / node_modules / bowser 错误的ERR!代码ENOENT 错误的ERR! errno -2 错误的ERR!系统调用重命名 错误的ERR! enoent ENOENT:没有这样的文件或目录,重命名' / home / alokkumar / my-app2 / node_modules / bowser' - > ' /home/alokkumar/my-app2/node_modules/.bowser.DELETE' 错误的ERR! enoent这与npm无法找到文件有关。 错误的ERR! ENOENT

npm ERR!可以在以下位置找到此运行的完整日志: 错误的ERR! /home/alokkumar/.npm/_logs/2018-01-06T11_49_05_124Z-debug.log

1 个答案:

答案 0 :(得分:0)

您是否执行了错误消息指示的内容?

rename '/home/alokkumar/my-app2/node_modules/bowser' -> '/home/alokkumar/my-app2/node_modules/.bowser.DELETE'