Rob-- / memoryjs

Read and write process memory in Node.js (Windows API functions exposed via Node bindings)
MIT License
632 stars 86 forks source link

Error: Cannot find module './build/Release/memoryjs #121

Open raze0727 opened 1 month ago

raze0727 commented 1 month ago

Error: Cannot find module './build/Release/memoryjs while doing node .

raze0727 commented 1 month ago

PS D:\ez> npm run build npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\razee\AppData\Roaming\npm-cache_logs\2024-07-24T16_23_48_419Z-debug.log PS D:\ez> cd D:\ez\node_modules\memoryjs PS D:\ez\node_modules\memoryjs> npm run build

memoryjs@3.5.1 build D:\ez\node_modules\memoryjs node ./scripts/install.js

Node architecture is x64: running "npm.cmd run build64"

memoryjs@3.5.1 build64 D:\ez\node_modules\memoryjs node-gyp clean configure build --arch=x64

D:\ez\node_modules\memoryjs>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" clean configure build --arch=x64 ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" clean configure build --arch=x64 ) Traceback (most recent call last): File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 50, in sys.exit(gyp.script_main()) ^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp__init.py", line 554, in script_main return main(sys.argv[1:]) ^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp__init__.py", line 547, in main return gyp_main(args) ^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\init.py", line 520, in gyp_main [generator, flat_list, targets, data] = Load( ^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\init__.py", line 136, in Load result = gyp.input.Load(build_files, default_variables, includes[:], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 2782, in Load LoadTargetBuildFile(build_file, data, aux_data, File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 391, in LoadTargetBuildFile build_file_data = LoadOneBuildFile(build_file_path, data, aux_data, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 234, in LoadOneBuildFile build_file_contents = open(build_file_path, 'rU').read() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid mode: 'rU' while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Windows_NT 10.0.22631 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "clean" "configure" "build" "--arch=x64" gyp ERR! cwd D:\ez\node_modules\memoryjs gyp ERR! node -v v14.15.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! memoryjs@3.5.1 build64: node-gyp clean configure build --arch=x64 npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the memoryjs@3.5.1 build64 script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\razee\AppData\Roaming\npm-cache_logs\2024-07-24T16_25_42_302Z-debug.log Script "npm.cmd run build64" exited with 1 PS D:\ez\node_modules\memoryjs>