percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
70 stars 43 forks source link

Cannot find module with latest percy/cli 1.0.0 install #855

Closed josh803316 closed 2 years ago

josh803316 commented 2 years ago

The problem

I'm attempting to upgrade to @percy/cli 1.0.0 (my CI logs told me a new version was available)

When I ran npm install I got the following

m ERR! command sh -c node ./post-install
npm ERR! node:internal/modules/cjs/loader:936
npm ERR!   throw err;
npm ERR!   ^
npm ERR! 
npm ERR! Error: Cannot find module '/Users/josh/git/core-web/node_modules/@percy/core/post-install'
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
npm ERR!     at node:internal/main/run_main_module:17:47 {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: []
npm ERR! }

Environment

Details

If necessary, describe the problem you have been experiencing in more detail.

Debug logs

See above

Code to reproduce issue

Given the nature of testing/environment bugs, it’s best to try and isolate the issue in a reproducible repo. This will make it much easier for us to diagnose and fix.

wwilsman commented 2 years ago

Closing this in favor of the other thread with more activity https://github.com/percy/cli/issues/856