Comments (3)
same problem, did you resolve this?
from nrm.
@wewang-sh you can follow the below:
# check the npm global bin location
npm -g bin
#or
which npm
# then check wether the PATH has the npm global path or not
echo $PATH
if you not find the npm global
path in the PATH or the path is not right, you can prepend it or just modify the npm global path with the npm cofig set prefix <the target path>
command
from nrm.
my problem caused by resolving npm i -g
need sudo
on macos with wrong way , and i fixed it by stepping https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
@HomyeeKing thanks bro
from nrm.
Related Issues (20)
- node version v16.18.0 ERROR: ERR_REQUIRE_ESM HOT 13
- 在nvm中初次的安装中可以,切换node版本安装就不行了 HOT 2
- what happen for this case HOT 5
- Command error HOT 2
- require() of ES modules is not supported. HOT 8
- [BUG] Tencent npm mirror may have unexpected behavior
- Node.js v18.15.0 require语法不支持 HOT 13
- throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath); HOT 10
- 关于报错的问题throw new ERR_REQUIRE_ESM、const open = require('open')、node 升级到18.xx.xx后包错的问题解决 HOT 9
- nodejs 20上面無法使用 HOT 6
- 低版本和高版本都都报错 HOT 1
- 这个项目当前还能发布新版吗? HOT 2
- 确认一下最新的npm源列表
- 加上ci HOT 1
- 各种badge缺失的还比较多
- nrm ls 输出taobao undefined HOT 5
- nrm test 命令测试工具不支持 IPv6
- unknown command 'publish' HOT 1
- nrm ls发现 npm ---------- undefined
- run command:nrm ls, then error occurrenced HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nrm.