解决Linux平台安装不了forever或提示没有node_modules文件夹

1.如下图在gitHub上,地址:https://github.com/foreverjs/forever ,下载foerver压缩包,但缺少node_modules依赖文件夹
这里写图片描述
2.然后在windows平台cmd命令行中使用命令npm install -g forever,安装forever然后再复制forever目录下的node_modules到刚才压缩包内,或解压后放进去再压缩成zip文件就可以放到Linux平台上用了,以下是window平台安装forever过程
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\ljk>npm install -g forever
C:\Users\ljk\AppData\Roaming\npm\forever -> C:\Users\ljk\AppData\Roaming\npm\nod
e_modules\forever\bin\forever
C:\Users\ljk\AppData\Roaming\npm
-- forever@0.15.3
+-- cliff@0.1.10
| +-- colors@1.0.3
|
– eyes@0.1.8
+– clone@1.0.3
+– colors@0.6.2
+– flatiron@0.4.3
| +– broadway@0.3.6
| | +– cliff@0.1.9
| | -- winston@0.8.0
| +-- director@1.2.7
| +-- optimist@0.6.0
|
– prompt@0.2.14
| +– read@1.0.7
| | -- mute-stream@0.0.7
|
– revalidator@0.1.8
+– forever-monitor@1.7.1
| +– chokidar@1.7.0
| | +– anymatch@1.3.2
| | | +– micromatch@2.3.11
| | | | +– arr-diff@2.0.0
| | | | | -- arr-flatten@1.1.0
| | | | +-- array-unique@0.2.1
| | | | +-- braces@1.8.5
| | | | | +-- expand-range@1.8.2
| | | | | |
– fill-range@2.2.3
| | | | | | +– is-number@2.1.0
| | | | | | +– isobject@2.1.0
| | | | | | +– randomatic@1.1.7
| | | | | | | +– is-number@3.0.0
| | | | | | | | -- kind-of@3.2.2
| | | | | | |
– kind-of@4.0.0
| | | | | | -- repeat-string@1.6.1
| | | | | +-- preserve@0.2.0
| | | | |
– repeat-element@1.1.2
| | | | +– expand-brackets@0.1.5
| | | | | -- is-posix-bracket@0.1.1
| | | | +-- extglob@0.3.2
| | | | +-- filename-regex@2.0.1
| | | | +-- kind-of@3.2.2
| | | | |
– is-buffer@1.1.6
| | | | +– object.omit@2.0.1
| | | | | +– for-own@0.1.5
| | | | | | -- for-in@1.0.2
| | | | |
– is-extendable@0.1.1
| | | | +– parse-glob@3.0.4
| | | | | +– glob-base@0.3.0
| | | | | -- is-dotfile@1.0.3
| | | |
– regex-cache@0.4.4
| | | | -- is-equal-shallow@0.1.3
| | | |
– is-primitive@2.0.0
| | | -- normalize-path@2.1.1
| | |
– remove-trailing-separator@1.1.0
| | +– async-each@1.0.1
| | +– glob-parent@2.0.0
| | +– inherits@2.0.3
| | +– is-binary-path@1.0.1
| | | -- binary-extensions@1.11.0
| | +-- is-glob@2.0.1
| | |
– is-extglob@1.0.0
| | -- readdirp@2.1.0
| | +-- graceful-fs@4.1.11
| | +-- readable-stream@2.3.5
| | | +-- core-util-is@1.0.2
| | | +-- isarray@1.0.0
| | | +-- process-nextick-args@2.0.0
| | | +-- safe-buffer@5.1.1
| | | +-- string_decoder@1.0.3
| | |
– util-deprecate@1.0.2
| | -- set-immediate-shim@1.0.1
| +-- minimatch@3.0.4
| |
– brace-expansion@1.1.11
| | +– balanced-match@1.0.0
| | -- concat-map@0.0.1
|
– ps-tree@0.0.3
| -- event-stream@0.5.3
|
– optimist@0.2.8
+– nconf@0.6.9
| +– async@0.2.9
| +– ini@1.3.5
| -- optimist@0.6.0
+-- nssocket@0.5.3
| +-- eventemitter2@0.4.14
|
– lazy@1.0.11
+– object-assign@3.0.0
+– optimist@0.6.1
| +– minimist@0.0.10
| -- wordwrap@0.0.3
+-- path-is-absolute@1.0.1
+-- prettyjson@1.2.1
| +-- colors@1.2.1
|
– minimist@1.2.0
+– shush@1.0.0
| +– caller@0.0.1
| | -- tape@2.3.3
| | +-- deep-equal@0.1.2
| | +-- defined@0.0.0
| | +-- jsonify@0.0.0
| | +-- resumer@0.0.0
| |
– through@2.3.8
| -- strip-json-comments@0.1.3
+-- timespan@2.3.0
+-- utile@0.2.1
| +-- async@0.2.10
| +-- deep-equal@1.0.1
| +-- i@0.3.6
| +-- mkdirp@0.5.1
| |
– minimist@0.0.8
| +– ncp@0.4.2
| -- rimraf@2.6.2
|
– glob@7.1.2
| +– fs.realpath@1.0.0
| +– inflight@1.0.6
| | -- wrappy@1.0.2
|
– once@1.4.0
-- winston@0.8.3
+-- cycle@1.0.3
+-- isstream@0.1.2
+-- pkginfo@0.3.1
– stack-trace@0.0.10

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\fo
rever\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.1.3: wanted {“os”:”darwin”,”arch”:”any”} (current: {“os”:”win32”,”arch”:”x64”}
)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值