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

Required dependencies are missing from package.json #39

Open
RA80533 opened this issue May 5, 2020 · 0 comments · May be fixed by #40
Open

Required dependencies are missing from package.json #39

RA80533 opened this issue May 5, 2020 · 0 comments · May be fixed by #40

Comments

@RA80533
Copy link

RA80533 commented May 5, 2020

I cloned the repository and ran into a few issues when I tried to set it up.

> [email protected] install /Users/RA80533/Desktop/screeps/driver/node_modules/fsevents
> node install

  SOLINK_MODULE(target) Release/.node
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/fse.node
  COPY /Users/RA80533/Desktop/screeps/driver/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
  COPY /Users/RA80533/Desktop/screeps/driver/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stamp
  TOUCH Release/obj.target/action_after_build.stamp

> [email protected] install /Users/RA80533/Desktop/screeps/driver/node_modules/isolated-vm
> node-gyp rebuild --release -j 4

  CXX(target) Release/obj.target/nortti/src/external_copy_nortti.o
  LIBTOOL-STATIC Release/nortti.a
  CXX(target) Release/obj.target/isolated_vm/src/isolate/allocator.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/class_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/environment.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/holder.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/inspector.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/stack_trace.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate/three_phase_task.o
  CXX(target) Release/obj.target/isolated_vm/src/context_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/external_copy.o
  CXX(target) Release/obj.target/isolated_vm/src/external_copy_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate.o
  CXX(target) Release/obj.target/isolated_vm/src/isolate_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/lib_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/native_module_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/reference_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/script_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/module_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/session_handle.o
  CXX(target) Release/obj.target/isolated_vm/src/transferable.o
  SOLINK_MODULE(target) Release/isolated_vm.node

> [email protected] postinstall /Users/RA80533/Desktop/screeps/driver/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js


> @screeps/[email protected] install /Users/RA80533/Desktop/screeps/driver
> node-gyp rebuild -C native && webpack

  CXX(target) Release/obj.target/native/src/main.o
  CXX(target) Release/obj.target/native/src/pf.o
  SOLINK_MODULE(target) Release/native.node
Executing post-build scripts
Hash: 2f277a711aa7386a2fe6
Version: webpack 3.11.0
Time: 244ms
            Asset    Size  Chunks                    Chunk Names
runtime.bundle.js  498 kB       0  [emitted]  [big]  main
   [0] (webpack)/buildin/global.js 509 bytes {0} [built]
   [2] ./lib/runtime/runtime.js 9.93 kB {0} [built]
   [3] ./lib/runtime/mapgrid.js 7.09 kB {0} [built]
   [4] ./lib/runtime/runtime-driver.js 4.09 kB {0} [built]
   [9] (webpack)/buildin/module.js 517 bytes {0} [built]
  [10] ./lib/path-finder.js 5 kB {0} [built]
    + 5 hidden modules

ERROR in ./lib/runtime/runtime-driver.js
Module not found: Error: Can't resolve '@screeps/common/lib/constants' in '/Users/RA80533/Desktop/screeps/driver/lib/runtime'
 @ ./lib/runtime/runtime-driver.js 11:20-60
 @ ./lib/runtime/mapgrid.js
 @ ./lib/runtime/runtime.js

ERROR in ./lib/runtime/runtime-driver.js
Module not found: Error: Can't resolve '@screeps/common/lib/system' in '/Users/RA80533/Desktop/screeps/driver/lib/runtime'
 @ ./lib/runtime/runtime-driver.js 12:17-54
 @ ./lib/runtime/mapgrid.js
 @ ./lib/runtime/runtime.js

ERROR in ./lib/runtime/runtime.js
Module not found: Error: Can't resolve '@screeps/engine/src/game/console' in '/Users/RA80533/Desktop/screeps/driver/lib/runtime'
 @ ./lib/runtime/runtime.js 3:24-67

ERROR in ./lib/runtime/runtime.js
Module not found: Error: Can't resolve '@screeps/engine/src/game/game' in '/Users/RA80533/Desktop/screeps/driver/lib/runtime'
 @ ./lib/runtime/runtime.js 2:17-57

ERROR in ./lib/runtime/runtime.js
Module not found: Error: Can't resolve '@screeps/engine/src/utils' in '/Users/RA80533/Desktop/screeps/driver/lib/runtime'
 @ ./lib/runtime/runtime.js 5:18-54

ERROR in ./lib/runtime/mapgrid.js
Module not found: Error: Can't resolve '@screeps/pathfinding' in '/Users/RA80533/Desktop/screeps/driver/lib/runtime'
 @ ./lib/runtime/mapgrid.js 1:18-49
 @ ./lib/runtime/runtime.js
Runtime snapshot created (2656724 bytes)

I took a peek at the files referenced in the errors. It looks like they reference a few missing dependencies, namely:

  • @screeps/common is required in lib/bulk.js (line 3), lib/history.js (line 3), lib/index.js (line 4), lib/queue.js (line 4), lib/runtime/data.js (line 4), lib/runtime/make.js (line 1), lib/runtime/runtime-driver.js (lines 11 and 12), and lib/runtime/user-vm.js (line 8)
  • @screeps/engine is required by lib/runtime/runtime.js (lines 2, 3, and 5)
  • @screeps/pathfinding is required by lib/runtime/mapgrid.js (line 1)
@RA80533 RA80533 linked a pull request May 5, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant