browserify error /usr/bin/env: node: No such file or directory

后端 未结 9 614
盖世英雄少女心
盖世英雄少女心 2020-11-29 17:17

I installed node js and npm via apt-get install and all of the dependencies, then I installed browserify

npm install browserify -g

it goes

9条回答
  •  半阙折子戏
    2020-11-29 17:54

    Run apt-get install nodejs-legacy.

    Certain linux distributions have changed node.js binary name making it uncompatible with a lot of node.js packages. Package nodejs-legacy provides a symlink to resolve this.

提交回复
热议问题