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
– eyes@0.1.8
+-- cliff@0.1.10
| +-- colors@1.0.3
|
+– clone@1.0.3
+– colors@0.6.2
+– flatiron@0.4.3
| +– broadway@0.3.6
| | +– cliff@0.1.9
| | -- winston@0.8.0
– prompt@0.2.14
| +-- director@1.2.7
| +-- optimist@0.6.0
|
| +– 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
– fill-range@2.2.3
| | | | +-- array-unique@0.2.1
| | | | +-- braces@1.8.5
| | | | | +-- expand-range@1.8.2
| | | | | |
| | | | | | +– 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
– repeat-element@1.1.2
| | | | | +-- preserve@0.2.0
| | | | |
| | | | +– expand-brackets@0.1.5
| | | | | -- is-posix-bracket@0.1.1
– is-buffer@1.1.6
| | | | +-- extglob@0.3.2
| | | | +-- filename-regex@2.0.1
| | | | +-- kind-of@3.2.2
| | | | |
| | | | +– 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-extglob@1.0.0
| | +-- is-glob@2.0.1
| | |
| | -- readdirp@2.1.0
– util-deprecate@1.0.2
| | +-- 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
| | |
| | -- set-immediate-shim@1.0.1
– brace-expansion@1.1.11
| +-- minimatch@3.0.4
| |
| | +– 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
– lazy@1.0.11
+-- nssocket@0.5.3
| +-- eventemitter2@0.4.14
|
+– object-assign@3.0.0
+– optimist@0.6.1
| +– minimist@0.0.10
| -- wordwrap@0.0.3
– minimist@1.2.0
+-- path-is-absolute@1.0.1
+-- prettyjson@1.2.1
| +-- colors@1.2.1
|
+– shush@1.0.0
| +– caller@0.0.1
| | -- tape@2.3.3
– through@2.3.8
| | +-- deep-equal@0.1.2
| | +-- defined@0.0.0
| | +-- jsonify@0.0.0
| | +-- resumer@0.0.0
| |
| -- strip-json-comments@0.1.3
– minimist@0.0.8
+-- 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
| |
| +– 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
– stack-trace@0.0.10
+-- cycle@1.0.3
+-- isstream@0.1.2
+-- pkginfo@0.3.1
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”}
)