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
Nothing weird, just normal installation guide on readme
Description
After i install np, and run, it returns error:
/Users/dimas/.nvm/versions/node/v18.17.1/lib/node_modules/np/node_modules/import-local/index.js:23
return !filenameInLocalNodeModules && localFile && path.relative(localFile, normalizedFilename) !== '' && require(localFile);
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/dimas/Acode/web/knowledgecatalyst/afap/node_modules/.pnpm/np@8.0.4/node_modules/np/source/cli.js from /Users/dimas/.nvm/versions/node/v18.17.1/lib/node_modules/np/node_modules/import-local/index.js not supported.
Instead change the require of cli.js in /Users/dimas/.nvm/versions/node/v18.17.1/lib/node_modules/np/node_modules/import-local/index.js to a dynamic import() which is available in all CommonJS modules.
at module.exports (/Users/dimas/.nvm/versions/node/v18.17.1/lib/node_modules/np/node_modules/import-local/index.js:23:108)
at file:///Users/dimas/.nvm/versions/node/v18.17.1/lib/node_modules/np/source/cli.js:11:6 {
code: 'ERR_REQUIRE_ESM'
}
Steps to reproduce
npm install --global np
np
<>
Expected behavior
It should showing upgrade menu like this
Environment
np - 8.0.4
Node.js - 18.17.1
npm - 9.6.7
Git - 2.39.2
OS - MAC OS Ventura (intel chip)
The text was updated successfully, but these errors were encountered:
Nothing weird, just normal installation guide on readme
Description
After i install np, and run, it returns error:
Steps to reproduce
Expected behavior
It should showing upgrade menu like this
Environment
np - 8.0.4
Node.js - 18.17.1
npm - 9.6.7
Git - 2.39.2
OS - MAC OS Ventura (intel chip)
The text was updated successfully, but these errors were encountered: