i5ting / imove

INACTIVE: Move your mouse, generate code from flow chart
https://www.yuque.com/imove/docs/hvu0md
MIT License
3.75k stars 343 forks source link

permission denied for mkdir '/usr/local/lib/node_modules/@imove' #42

Closed peishaofeng closed 3 years ago

peishaofeng commented 3 years ago

while running npm install (without root or sudo permission), it raise exception as blow

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@imove'

why need to create a global command for a local project?

i5ting commented 3 years ago

this project need a service imove -d。you can use nvm.sh install node to user home dir. or change /package.json postinstall use sudo permission.

we will refact with umi mock @SmallStoneSK

peishaofeng commented 3 years ago

I've got the answer as mentioned below:

this project need a service imove -d。you can use nvm.sh install node to user home dir. or change /package.json postinstall use sudo permission.