Не могу установить Cordova с npm 5.6.0

Owen Calvin спросил: 14 ноября 2017 в 06:27 в: javascript

Я не могу установить Cordova в моем Linux (Deepin 15.5), пожалуйста, помогите мне:)

$ sudo npm install -g ionic

/usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/ionic/node_modules/fsevents):  
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})\+ ionic@3.19.0
updated 1 package in 8.52s

$ sudo npm install -g cordova

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead  
npm ERR! path /usr/local/lib/node_modules/cordova/node_modules  /npm/node_modules/ansistyles  
npm ERR! code ENOENT  
npm ERR! errno -2  
npm ERR! syscall rename  
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/cordova/node_modules/npm/node_modules/ansistyles' -> '/usr/local/lib/node_modules/cordova/node_modules/npm/node_modules/.ansistyles.DELETE'  
npm ERR! enoent This is related to npm not being able to find a file.  
npm ERR! enoent  npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-12-08T19_53_31_209Z-debug.log

0 ответов