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

npm vunerabilities #159

Open
debragail opened this issue Feb 17, 2019 · 0 comments
Open

npm vunerabilities #159

debragail opened this issue Feb 17, 2019 · 0 comments

Comments

@debragail
Copy link
Contributor

debragail commented Feb 17, 2019

I must have ran an 'npm audit' and fixed the vulnerabilities and thus breaking webpack's peer dependencies versions. newer versions of webpack-dev-server and webpack-cli in package.json are looking for different versions of webpack (webpack@2,@3,@4) for peer depedencies and can't build.

Expected Behavior

Should be able to use latest stable webpack.

Current Behavior

Debras-MacBook-Pro:xplore 0PHE1IA$ npm start

> xplore@0.0.1 start /Users/0PHE1IA/code/dav/xplore
> webpack-dev-server --config webpack.dev.js

The CLI moved into a separate package: webpack-cli Please install 'webpack-cli' in addition to webpack itself to use the CLI -> When using npm: npm i -D webpack-cli -> When using yarn: yarn add -D webpack-cli internal/modules/cjs/loader.js:596 throw err; ^

Error: Cannot find module 'webpack-cli/bin/config-yargs' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15) at Function.Module._load (internal/modules/cjs/loader.js:520:25) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/Users/0PHE1IA/code/dav/xplore/node_modules/webpack-dev-server/bin/webpack-dev-server.js:84:1) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! xplore@0.0.1 start: webpack-dev-server --config webpack.dev.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the xplore@0.0.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/0PHE1IA/.npm/_logs/2019-02-17T19_53_24_254Z-debug.log

Possible Solution

Steps to Reproduce (for bugs)

  1. npm i

screen shot 2019-02-17 at 11 55 02

  1. npm audit

screen shot 2019-02-17 at 12 51 23

  1. fix vunerabilities
    npm install --save-dev babel-jest@24.1.0' 'npm install --save-dev webpack-dev-server@3.1.14' 'npm install --save-dev jest-cli@24.1.0' 'npm install --save-dev jest@24.1.0

screen shot 2019-02-17 at 12 27 11

  1. npm start

screen shot 2019-02-17 at 12 49 42

Context

Want to make sure packages and dependencies are up to date, compatible, and secure.

Your Environment

  • Node 10.4.0
  • Mac OS 10.10.5
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

1 participant