老师,服务器上 npm install yorkie 时报错了,是什么原因

来源:9-3 部署到云服务器

慕姐0182882

2018-12-15

[root@vultr vue-sell-cube]# npm install yorkie@2.0.0

yorkie@2.0.0 install /home/michael/sell/vue-sell-cube/node_modules/yorkie
node bin/install.js

internal/modules/cjs/loader.js:583
throw err;
^

Error: Cannot find module '/home/michael/sell/vue-sell-cube/node_modules/yorkie/bin/install.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:282:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^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”})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yorkie@2.0.0 install: node bin/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yorkie@2.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-12-15T09_04_20_426Z-debug.log

写回答

2回答

丶远走高飞

2019-03-16

我也遇到一模一样的问题,老哥如何解决的

0
0

ustbhuangyi

2018-12-16

你为啥装这个包?

0
5
weixin_慕运维6101140
回复
慕姐0182882
老哥我也遇到这个问题了,后面怎么解决的?
2020-01-31
共5条回复

Vue.js2.5+cube-ui重构饿了么App(经典再升级)

掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp

9868 学习 · 4162 问题

查看课程