【问题标题】:Downgrade Parse Server降级解析服务器
【发布时间】:2018-09-24 19:39:18
【问题描述】:

我已经连续尝试了 2 个小时,将 Parse Server 从 3.0.0 降级到 2.8.4 并且每次都失败了!

我把它从package.jsonnpm install改成了,转到仪表板,还是:server version 3.0.0

以下是安装日志:

npm install
npm WARN deprecated uws@10.148.1: stop using this version
parse-server-example@1.4.0 /root/parse-server-example
├─┬ parse-dashboard@1.2.0
│ └─┬ express@4.16.3
│   ├── array-flatten@1.1.1 
│   ├── encodeurl@1.0.2 
│   ├─┬ finalhandler@1.1.1
│   │ └── encodeurl@1.0.2 
│   ├─┬ send@0.16.2
│   │ └── encodeurl@1.0.2 
│   └─┬ serve-static@1.13.2
│     └── encodeurl@1.0.2 
└─┬ parse-server@2.8.4 
  ├─┬ @parse/push-adapter@3.0.0-alpha2
  │ └─┬ parse@1.11.1 
  │   └─┬ ws@3.3.3 
  │     └── ultron@1.1.1 
  ├── @parse/simple-mailgun-adapter@1.0.2 
  ├── commander@2.16.0 
  ├─┬ express@4.16.2
  │ ├── array-flatten@1.1.1 
  │ └── encodeurl@1.0.2 
  ├── lru-cache@4.1.2 
  ├─┬ mongodb@3.1.1 
  │ └─┬ mongodb-core@3.1.0 
  │   └── bson@1.0.9 
  ├─┬ parse@1.11.1 
  │ └─┬ ws@3.3.3 
  │   └── ultron@1.1.1 
  └── request@2.85.0 

npm ERR! Linux 4.15.0-34-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! path /root/parse-server-example/node_modules/.staging/node-pre-gyp-49f396d5
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/root/parse-server-example/node_modules/.staging/node-pre-gyp-49f396d5' -> '/root/parse-server-example/node_modules/bcrypt/node_modules/node-pre-gyp'
npm ERR! enoent ENOENT: no such file or directory, rename '/root/parse-server-example/node_modules/.staging/node-pre-gyp-49f396d5' -> '/root/parse-server-example/node_modules/bcrypt/node_modules/node-pre-gyp'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /root/parse-server-example/npm-debug.log

我能做什么?

【问题讨论】:

    标签: parse-server downgrade


    【解决方案1】:

    绝对不要在不查看将要删除的内容并了解它是否正常的情况下运行此命令,但请尝试执行rm -rf <path>/node_modules/*。也许等待一两个评论确认。说真的,不要因为互联网上有人告诉你就随意执行rm -rf 命令。

    但在这种情况下,您应该可以删除 node_modules 和 package-lock.json(如果存在),然后运行 ​​npm install 对 package.json 中的内容进行一些全新安装。

    说真的,绝对不要这样做,直到您查看您正在做的事情并确认它没问题。

    package-lock.json 跟踪您使用的模块版本的变化。 node_modules 是npm install 安装所有模块的位置。当您运行该命令时,它会检查您的 node_modules 与您的 package.json 以查看是否有任何更新的版本符合您的条件。我知道为什么它没有降级,但如果你的 package.json 设置正确,这应该给它一个全新的安装并且应该工作。

    不过,风险自负。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-03
      • 1970-01-01
      • 2019-06-05
      • 1970-01-01
      • 2022-01-22
      • 1970-01-01
      相关资源
      最近更新 更多