shadowsocks-manager icon indicating copy to clipboard operation
shadowsocks-manager copied to clipboard

Cannot find module

Open ioOiOiOoi opened this issue 9 years ago • 13 comments

[email protected],centos 7系统

1,

ss.yml文件内容: type: s empty: false shadowsocks: address: 127.0.0.1:4000 manager: address: 0.0.0.0:4001 password: '123456' db: 'ss.sqlite'

2, 执行ss-manager -m aes-256-cfb -u --manager-address 127.0.0.1:4000没有问题

3, 执行ssmgr -c ss.yml出现以下信息: [2017-03-17 10:50:50.983] [INFO] system - System start. Knex: run $ npm install sqlite3 --save Error: Cannot find module '/usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3/lib/sqlite3.js:4:15) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Client_SQLite3._driver (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/dialects/sqlite3/index.js:75:12) at Client_SQLite3.initializeDriver (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/client.js:219:26) at Client_SQLite3.Client (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/client.js:113:10) at new Client_SQLite3 (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/dialects/sqlite3/index.js:58:20) at Knex (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/index.js:60:34) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/init/knex.js:19:25) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/server.js:33:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/bin/ssmgr:8:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3

4, 执行npm install sqlite3 --save安装,出现以下信息:

node-pre-gyp install --fallback-to-build

[sqlite3] Success: "/root/node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node" is installed via remote npm WARN saveError ENOENT: no such file or directory, open '/root/package.json' /root └── [email protected]

npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field.

5, 执行ssmgr -c ss.yml出现同样问题: [2017-03-17 10:51:16.883] [INFO] system - System start. Knex: run $ npm install sqlite3 --save Error: Cannot find module '/usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3/lib/sqlite3.js:4:15) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Client_SQLite3._driver (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/dialects/sqlite3/index.js:75:12) at Client_SQLite3.initializeDriver (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/client.js:219:26) at Client_SQLite3.Client (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/client.js:113:10) at new Client_SQLite3 (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/dialects/sqlite3/index.js:58:20) at Knex (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/index.js:60:34) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/init/knex.js:19:25) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/server.js:33:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/bin/ssmgr:8:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3

6, 手动删除/usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3目录

然后执行npm install sqlite3 --save出现以下信息:

[email protected] install /usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

[sqlite3] Success: "/usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node" is installed via remote [email protected] /usr/lib/node_modules/shadowsocks-manager └─┬ [email protected] └─┬ [email protected] ├─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └── [email protected] ├── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └── [email protected] └─┬ [email protected] ├─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └─┬ [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └── [email protected] └── [email protected]

npm WARN [email protected] license should be a valid SPDX license expression

最后,

执行ssmgr -c ss.yml出现以下信息: [2017-03-17 10:58:45.297] [INFO] system - System start. [2017-03-17 10:58:46.067] [ERROR] system - socket error: { Error: listen EADDRINUSE 0.0.0.0:4001 at Object.exports._errnoException (util.js:1022:11) at exports._exceptionWithHostPort (util.js:1045:20) at Server._listen2 (net.js:1259:14) at listen (net.js:1295:10) at net.js:1405:9 at _combinedTickCallback (internal/process/next_tick.js:77:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9) code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '0.0.0.0', port: 4001 } [email protected] alert: failed to send exception to sentry: HTTP Error (429): Creation of this event was denied due to rate limiting

ioOiOiOoi avatar Mar 17 '17 10:03 ioOiOiOoi

在项目根目录执行 npm install(不带额外参数)。

t123yh avatar Mar 17 '17 13:03 t123yh

@t123yh

1, 执行cd /usr/lib/node_modules/shadowsocks-manager

2, 然后执行npm install出现以下信息: npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. [email protected] /usr/lib/node_modules/shadowsocks-manager ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ └─┬ [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ └─┬ [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ ├─┬ [email protected] │ │ │ │ │ │ └─┬ [email protected] │ │ │ │ │ │ └── [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ └─┬ [email protected] │ │ │ │ └── [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├── [email protected] │ │ │ │ ├── [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ └─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] │ │ │ ├─┬ [email protected] │ │ │ │ ├─┬ [email protected] │ │ │ │ │ └── [email protected] │ │ │ │ └── [email protected] │ │ │ ├── [email protected] │ │ │ └── [email protected] │ │ ├── [email protected] │ │ └── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └─┬ [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected] └── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN [email protected] license should be a valid SPDX license expression

3, 执行ss-manager -m aes-256-cfb -u --manager-address 127.0.0.1:4000正常

4, 执行ssmgr -c ss.yml依然出现以上错误: /usr/lib/node_modules/shadowsocks-manager/lib/ [2017-03-17 13:39:53.747] [INFO] system - System start. Knex: run $ npm install sqlite3 --save Error: Cannot find module '/usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3/lib/binding/node-v48-linux-x64/node_sqlite3.node' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/node_modules/sqlite3/lib/sqlite3.js:4:15) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Client_SQLite3._driver (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/dialects/sqlite3/index.js:75:12) at Client_SQLite3.initializeDriver (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/client.js:219:26) at Client_SQLite3.Client (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/client.js:113:10) at new Client_SQLite3 (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/dialects/sqlite3/index.js:58:20) at Knex (/usr/lib/node_modules/shadowsocks-manager/node_modules/knex/lib/index.js:60:34) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/init/knex.js:19:25) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/server.js:33:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/shadowsocks-manager/bin/ssmgr:8:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3

ioOiOiOoi avatar Mar 17 '17 13:03 ioOiOiOoi

这个是由于网络原因,npm安装的时候sqlite没装成功,可以删除重装解决:

npm uninstall -g shadowsocks-manager
npm install -g shadowsocks-manager

gyteng avatar Mar 17 '17 13:03 gyteng

@gyteng 我重装了两次系统也是这样,我明天换npm淘宝镜像试试

ioOiOiOoi avatar Mar 17 '17 14:03 ioOiOiOoi

I have met this issue too.

Icarus0xff avatar Mar 24 '17 06:03 Icarus0xff

I have met this issue too.

mmmwhy avatar May 12 '17 03:05 mmmwhy

@mmmwhy @hikkikuma1991 Sometimes the network problem will cause this, I don't know why, just remove node_mudules and reinstall.

gyteng avatar May 12 '17 07:05 gyteng

@gyteng thank you ,i have solved this problem.reinstall make work.

mmmwhy avatar May 12 '17 08:05 mmmwhy

cd /usr/lib/node_modules/shadowsocks-manager/ npm install sqlite3 --save

works for me

heymario avatar Jun 09 '17 01:06 heymario

和LZ同样问题

aloveric avatar Mar 25 '18 15:03 aloveric

I have the same problem , None of the above methods are useful,

zhuxindong avatar May 13 '18 11:05 zhuxindong

I have the same problem , None of the above methods are useful,

JasonLiuLab avatar Oct 18 '18 14:10 JasonLiuLab

Here is a similar situations, but a little bit of different. After upgrading from 18.04 LTS to 20.04 LTS things got broken.

ubuntu@ss:~# while true; do ssmgr -c /home/ubuntu/.ssmgr/ss-redir.yml; sleep 2; done
/usr/local/lib/node_modules/shadowsocks-manager/
[2020-09-13T03:29:15.404] [INFO] system - System start[7379].
/usr/local/lib/node_modules/shadowsocks-manager/
[2020-09-13T03:29:15.687] [INFO] system - Worker start[7386].
[2020-09-13T03:29:15.828] [INFO] system - Config file path:  /home/ben/.ssmgr/ss-redir.yml
Knex: run
$ npm install sqlite3 --save
Cannot find module '/usr/local/lib/node_modules/shadowsocks-manager/node_modules/sqlite3/lib/binding/node-v83-linux-x64/node_sqlite3.node'
...

Do you see /usr/local/lib/ above? If you installed ssmgr by npm i -g shadowsocks-manager --unsafe-perm the right path should be located at /usr/lib/node_modules/shadowsocks-manager/

Let's fix this:

  1. Remove ssmgr from the wrong location. rm -rf /usr/local/lib/node_modules/shadowsocks-manager
  2. Install ssmgr again at the right location npm i -g shadowsocks-manager --unsafe-perm
  3. Refresh all remembered locations hash -r
  4. Test run ssmgr -V, see /usr/lib/node_modules is the legit location
ubuntu@ss:~# ssmgr -V
/usr/lib/node_modules/shadowsocks-manager/
[2020-09-13T04:10:27.756] [INFO] system - System start[11159].
/usr/lib/node_modules/shadowsocks-manager/
[2020-09-13T04:10:28.035] [INFO] system - Worker start[11166].
shadowsocks-manager 0.36.42

All done.

myfingerhurt avatar Sep 12 '20 19:09 myfingerhurt