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

Error: Cannot find module 'shelljs' #24

Open
lingyuncelia opened this issue Dec 9, 2021 · 3 comments
Open

Error: Cannot find module 'shelljs' #24

lingyuncelia opened this issue Dec 9, 2021 · 3 comments

Comments

@lingyuncelia
Copy link

cmd进入K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\proxy-server,运行node proxy-server.js。
报错:
internal/modules/cjs/loader.js:883
throw err;
^

Error: Cannot find module 'shelljs'
Require stack:

  • K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js
  • K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\proxy-server\rules.js
  • K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\proxy-server\proxy-server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js:2:15)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\proxy-server\rules.js:1:35)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js',
    'K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\proxy-server\rules.js',
    'K:\ast-hook-for-js-RE-master\ast-hook-for-js-RE-master\src\proxy-server\proxy-server.js'
    ]
    }
@lingyuncelia
Copy link
Author

npm install -g XXXXXX,没事,我懂了,原来要全局安装好几个库。

@youngJL15
Copy link

npm install -g XXXXXX,没事,我懂了,原来要全局安装好几个库。

我也是遇到这个情况,全局安装好了shelljs,还需要一些什么库呢

@xiaosass1024
Copy link

npm install -g XXXXXX,没事,我懂了,原来要全局安装好几个库。

我也是遇到这个情况,全局安装好了shelljs,还需要一些什么库呢

我是在文件夹里面又装了一次shelljs就解决了,全局安装不管用。。

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

3 participants