Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动 local.js 报错 #1

Closed
Pagliacii opened this issue Dec 9, 2016 · 18 comments
Closed

启动 local.js 报错 #1

Pagliacii opened this issue Dec 9, 2016 · 18 comments

Comments

@Pagliacii
Copy link

module.js:471
    throw err;
    ^

Error: Cannot find module './merge_sort'
    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.<anonymous> (G:\GitHub\shadowsocks-heroku\encrypt.js:7:16)
    at Object.<anonymous> (G:\GitHub\shadowsocks-heroku\encrypt.js:207:4)
    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)

请问如何解决?

@521xueweihan
Copy link
Owner

521xueweihan commented Dec 10, 2016

sorry, 是我忘记上传merge_sort.js文件,已修复,请重新 clone 项目或 git pull 获取最新代码 😓

@Pagliacii
Copy link
Author

thanks

@rainbowsky911
Copy link

C:\Users\Administrator>node local .js-s rainbowsky911.herokuapp.com-1 1080-m rc4
-k zhang33is -r 80
module.js:471
throw err;
^

Error: Cannot find module 'C:\Users\Administrator\local'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3

你好,可以看一下是我启动local-js地方写错了吗,我太笨看不懂=====谢谢哈

@521xueweihan
Copy link
Owner

你好,应该是启动命令输入错误,尝试复制、黏贴下面的命令到命令行中:

node local.js -s rainbowsky911.herokuapp.com -l 1080-m rc4 -k zhang33is -r 80

@rainbowsky911
Copy link

rainbowsky911 commented Apr 5, 2017

#11 C:\Users\Administrator>npm install
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Administrato
package.json'
npm WARN Administrator No description
npm WARN Administrator No repository field.
npm WARN Administrator No README data
npm WARN Administrator No license field.

C:\Users\Administrator>node local.js -s rainbowsky911.herokuapp.com -l 1080-m
4 -k zhang33is -r 80
module.js:471
throw err;
^

Error: Cannot find module 'C:\Users\Administrator\local.js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3
帅哥再帮忙看一下吧,第一步就GG了

@WhirlFirst
Copy link

@521xueweihan
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

第一步就挂了,,,,

@521xueweihan
Copy link
Owner

521xueweihan commented Jul 2, 2017

@fuguohong
Copy link

安装依赖的时候报错(在项目目录)
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
运行时 node local.js -s myvpnapp.herokuapp.com -l 1080-m rc4 -k fff19950728 -r 80
没有任何提示。直接就退出了

@remember-past
Copy link

这个方法挂了吗?
我全部成功,依然无法使用,而且启用后无法上网

@521xueweihan
Copy link
Owner

521xueweihan commented Jul 8, 2017

@remember-past 此方法依然有效,请自行。查看配置以及 heroku 服务器的log进行排查问题

@remember-past
Copy link

非常感谢,已成功

@LongruiDong
Copy link

C:>node local.js -s dlrapp.herokuapp.com -l 1080 -m rc4 -k dlr3972283169 -r 80
module.js:487
throw err;
^

Error: Cannot find module 'C:\local.js'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3

您好,我查找了好几次,还是没找到上面哪里有问题T-T,请问该如何解决?
谢谢哈!

@521xueweihan
Copy link
Owner

@LongruiDong 安装依赖库有问题

@LongruiDong
Copy link

LongruiDong commented Jul 27, 2017

@521xueweihan 我又安装了依赖库,执行了:
npm config set registry https://registry.npm.taobao.org
npm info underscore (如果上面配置正确这个命令会有字符串response)后,出现下面很多字符,是安装成功了吧。。
default
但下一步启动本地 client,仍然返回
D:\Program Files\nodejs\node_modules\npm>node local.js -s dlrapp.herokuapp.com -
l 1080 -m rc4 -k dlr3972283169 -r 80
module.js:487
throw err;
^

Error: Cannot find module 'D:\Program Files\nodejs\node_modules\npm\local.js'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3

。。。T_T。。。

@521xueweihan
Copy link
Owner

521xueweihan commented Jul 27, 2017

@LongruiDong 到下 clone 下来的目录下执行命令,找到 local.js 文件

@yongyecc
Copy link

    result = this.cipher.update(buf);
                        ^

TypeError: Cannot read property 'update' of undefined我才装的系统,一直报这个错误

@jackchen75
Copy link

Couldn't connect to GitHub:
Error:remote was closed,authorization was denied,or an authentication message otherwise not received before the window closed.

大神,这是怎么回事啊

@HornetsDowney
Copy link

HornetsDowney commented Aug 13, 2019

(node:10821) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

image

这个问题很奇怪,因为我这里有两个,我三个月前的命令运行的时候没有这个问题,最近heroku账户忘记了,我重新注册了一个heroku账户后,命令运行的时候就会报这个错。麻烦大佬看一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants