rafgraph / rollpkg

Zero-config build tool to create packages with Rollup and TypeScript
MIT License
175 stars 8 forks source link

Exit code: 1 - Command: node scripts/build.js #13

Closed mwmcode closed 3 years ago

mwmcode commented 3 years ago

Hi @rafgraph

I'm getting the following error when I try to install the package (both npm & yarn).

error /Users/mcha/Desktop/take2/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /Users/mcha/Desktop/take2/node_modules/node-sass
Output:
Building: /Users/mcha/n/bin/node /Users/mcha/Desktop/take2/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/Users/mcha/n/bin/node',
gyp verb cli   '/Users/mcha/Desktop/take2/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@16.1.0 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.16
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 16.1.0
gyp verb command install [ '16.1.0' ]
gyp verb install input version string "16.1.0"
gyp verb install installing version: 16.1.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 16.1.0
gyp verb ensuring nodedir is created /Users/mcha/.node-gyp/16.1.0
gyp verb created nodedir /Users/mcha/.node-gyp/16.1.0
gyp http GET https://nodejs.org/download/release/v16.1.0/node-v16.1.0-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp verb command remove [ '16.1.0' ]
gyp verb remove using node-gyp dir: /Users/mcha/.node-gyp
gyp verb remove removing target version: 16.1.0
gyp verb remove removing development files for version: 16.1.0
gyp ERR! configure error
gyp ERR! stack Error: connect EBADF 104.20.22.46:443
gyp ERR! stack     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1133:16)
gyp ERR! System Darwin 20.5.0
gyp ERR! command "/Users/mcha/n/bin/node" "/Users/mcha/Desktop/take2/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/mcha/Desktop/take2/node_modules/node-sass
gyp ERR! node -v v16.1.0
rafgraph commented 3 years ago

It looks like you’re using node 16. Some of the dependencies are not compatible with node 16 yet. Try using node 14.

mwmcode commented 3 years ago

😅 Thanks! I thought I tried with node 14 already, but apparently I have not.