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

后端 未结 9 603
盖世英雄少女心
盖世英雄少女心 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 18:10

    If you don't want to symlink you could do this. works in ubuntu

    #!/usr/local/bin/node --harmony
    

    harmony tag is for the new ECMAscript harmony

提交回复
热议问题