Cannot find module 'browserify'

本秂侑毒 提交于 2019-12-05 03:51:43
Anish Agarwal

I was face same problem but if you want to install browserify module you can use this

       npm install  browserify        

Try:

npm install js-base64

and if you encounter the below error

npm ERR! Error: EACCES: permission denied, unlink '/Users/host/module/node_modules/npm/node_modules/.bin/node-gyp'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, unlink '/Users/host/module/node_modules/npm/node_modules/.bin/node-gyp']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'unlink',
npm ERR!   path: '/Users/host/module/node_modules/npm/node_modules/.bin/node-gyp' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

then use the below command:

sudo npm install -g js-base64 --save
Anish Agarwal

i have to find another way for install browserify for globally so you can use this command for linux

sudo npm install browserify -g
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!