npm install - how to run build scripts with sufficient permissions?

前端 未结 1 1656
天命终不由人
天命终不由人 2021-01-01 13:45

I\'ve created a node-module that has a build script that gets called after the installation. The build script clones a git repository and copies some files of it to another

相关标签:
1条回答
  • 2021-01-01 14:34

    Do you have the x flag on build.js?

    chmod +x build.js
    

    And the first line of your script should tell how to execute the script from the shell:

    #!/usr/bin/env node
    
    0 讨论(0)
提交回复
热议问题