This repository was archived by the owner on Feb 26, 2021. It is now read-only.
Merged
Conversation
`npm install` was running in the wrong directory, which lead to the dependencies not gettings installed correctly.
nigthknight
approved these changes
Jan 13, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm installwas running in the wrong directory, which lead to the dependencies not getting installed correctly.Previously:
On startup:
> securebox-nmap@1.0.5 start /src > node index.js internal/modules/cjs/loader.js:800 throw err; ^ Error: Cannot find module '@securecodebox/scanner-scaffolding' Require stack: - /src/index.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15) at Function.Module._load (internal/modules/cjs/loader.js:690:27) at Module.require (internal/modules/cjs/loader.js:852:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/src/index.js:19:28) at Module._compile (internal/modules/cjs/loader.js:959:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10) at Module.load (internal/modules/cjs/loader.js:815:32) at Function.Module._load (internal/modules/cjs/loader.js:727:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/src/index.js' ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! securebox-nmap@1.0.5 start: `node index.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the securebox-nmap@1.0.5 start 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! /home/nmap_user/.npm/_logs/2020-01-09T10_34_23_150Z-debug.log