You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error Command failed.
Exit code: 1
Command: git
Arguments: commit -m v1.0.3
Directory: /Users/lee/lee/npm/vite-plugin-html-mpa
Output:
nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local"
Run `unset PREFIX` to unset it.
> running pre-commit hook: lint-staged
internal/modules/cjs/loader.js:625
throw e;
^
Error: No valid exports main found for '/Users/lee/lee/npm/vite-plugin-html-mpa/node_modules/colorette'
at resolveExportsTarget (internal/modules/cjs/loader.js:622:9)
at applyExports (internal/modules/cjs/loader.js:499:14)
at resolveExports (internal/modules/cjs/loader.js:548:12)
at Function.Module._findPath (internal/modules/cjs/loader.js:654:22)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Module.require (internal/modules/cjs/loader.js:1028:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/Users/lee/lee/npm/vite-plugin-html-mpa/node_modules/listr2/dist/utils/colorette.js:4:19)
at Module._compile (internal/modules/cjs/loader.js:1139:30) {
code: 'MODULE_NOT_FOUND'
}
pre-commit hook failed (add --no-verify to bypass)
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.
方法
进入 .zshrc ,添加下面代码即可
export PREFIX= nvm use --delete-prefix stable
The text was updated successfully, but these errors were encountered:
问题
方法
进入 .zshrc ,添加下面代码即可
The text was updated successfully, but these errors were encountered: