Snyk: npm install fails with: "ENOENT: no such file or directory, rename"

Created on 12 Oct 2019  路  4Comments  路  Source: snyk/snyk

  • node -v: v8.10.0
  • npm -v: 5.6.0
  • snyk -v: 1.234.2
  • Command run: npm install

Expected behaviour

That npm install works after initial install of the snyk package.

Actual behaviour

Installing snyk works, but the next time I run npm install in a fresh project it explodes with:

npm ERR! path /Users/zac/code/testsnyk/node_modules/snyk/node_modules/proxy-agent/node_modules/ast-types
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/zac/code/testsnyk/node_modules/snyk/node_modules/proxy-agent/node_modules/ast-types' -> '/Users/zac/code/testsnyk/node_modules/snyk/node_modules/proxy-agent/node_modules/.ast-types.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/zac/.npm/_logs/2019-10-11T22_12_43_780Z-debug.log

In addition, when looking at the package-lock.json for snyk it has a really weird looking entry for proxy-agent:

"proxy-agent": "file:../../../../home/travis/build/snyk/snyk/proxy-agent-3.1.0.tgz",

Steps to reproduce

mkdir testsnyk
cd testsnyk
npm init -f
npm install snyk
npm install
in progress node-proxy-agent

All 4 comments

The PRs have been merged, waiting for a new release

馃憢 Please could you try again with the latest version of the CLI 1.237.0?

LGTM! Thanks for fixing :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

smockle picture smockle  路  4Comments

alexanderkozlenko picture alexanderkozlenko  路  6Comments

balderdash picture balderdash  路  5Comments

qmn1711 picture qmn1711  路  4Comments

dwaynebailey picture dwaynebailey  路  4Comments