Giter Club home page Giter Club logo

Comments (9)

nero120 avatar nero120 commented on August 9, 2024 1

This isn't xBrowserSync code, it's the node-sass install process that's having the issue:

error command sh -c node scripts/build.js

scripts/build.js is node_modules/node-sass/scripts/build.js. What do you expect me to do about this, I don't look after that project. You need to create an issue in the node-sass repo.

from api.

nero120 avatar nero120 commented on August 9, 2024

You shouldn't need to run npm install bunyan since bunyan is a dependency of xbrowsersync-api.

Can you run:

> rm -rf node_modules
> npm install --unsafe-perm

After that, does /home/harleypig/projects/xbrowsersync-api/node_modules/bunyan exist? Also what version of node are you running?

from api.

harleypig avatar harleypig commented on August 9, 2024
$ node --version
v16.4.1

The node_modules directory does not exist in the repo directory (or any directory in the repo tree) after running npm install --unsafe-perm. Nothing new is installed in /usr/lib/node_modules and the only other places I can find with that directory name are under other projects.

When running npm install --unsafe-perm (from the top level of the repo) hangs at this point for approximately 4 minutes, then erases the output and drops to the prompt with no other output.

[white boxes] \ reify:date-fns: timing reifyNode:node_modules/typescript Completed in 17555ms

This is what the final output looks like (I added the time command to see how long it took):
$ time npm install --unsafe-perm

real    3m59.223s
user    3m51.986s
sys     0m24.683s

from api.

nero120 avatar nero120 commented on August 9, 2024

Ah ok. Remove loglevel=silent from .npmrc, that should output better logging, then run:

> npm install

(leave off --unsafe-perm)

I think unsafe-perm was needed on linux due to node-sass, but this may have changed so try without.

from api.

harleypig avatar harleypig commented on August 9, 2024

Still didn't install anything, but at least I have an error log now. I wasn't able to attach the file. Github doesn't seem to like the raw file (too large?) or tar.xz, tar.gz, gz, or zip files.

Two sections seem to me to be significant. The first includes 1k lines of what look like commands (g++, ln, cp, mv, etc) but no results and the second looks like a related failure.

1905 error path /home/harleypig/projects/xbrowsersync-api/node_modules/node-sass
1906 error command failed
1907 error command sh -c node scripts/build.js
1908 error Building: /usr/bin/node /home/harleypig/projects/xbrowsersync-api/node_modules/node-gyp/bin/node-gyp.js     rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --   libsass_library=
... 1k lines ...
1908 error make: Leaving directory '/home/harleypig/projects/xbrowsersync-api/node_modules/node-sass/build'

and this

1909 error gyp ERR! build error
1909 error gyp ERR! stack Error: `make` failed with exit code: 2
1909 error gyp ERR! stack     at ChildProcess.onExit (/home/harleypig/projects/xbrowsersync-api/node_modules/node-gyp/lib/build.js:194:23)
1909 error gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
1909 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
1909 error gyp ERR! System Linux 5.11.10-arch1-1
1909 error gyp ERR! command "/usr/bin/node" "/home/harleypig/projects/xbrowsersync-api/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
1909 error gyp ERR! cwd /home/harleypig/projects/xbrowsersync-api/node_modules/node-sass
1909 error gyp ERR! node -v v16.4.1
1909 error gyp ERR! node-gyp -v v7.1.2
1909 error gyp ERR! not ok
1909 error Build failed with error code: 1
1910 verbose exit 1

I have gyp installed on my system for other reasons. Would that be interfering?

Also, it appears to be using python in there somewhere so, the python version is 3.9.5.

from api.

harleypig avatar harleypig commented on August 9, 2024

I just noticed it's claiming to install files into node_modules under the repo, but no such directory exists. I ran the npm install command and watched for the node_modules to show up, which it did almost immediately and disappeared shortly before the end of the run.

from api.

harleypig avatar harleypig commented on August 9, 2024

bump

from api.

nero120 avatar nero120 commented on August 9, 2024

Not sure what you want me to say, this isn't an xBrowserSync issue, it's a node-sass/npm/environment issue. Perhaps check here?

from api.

harleypig avatar harleypig commented on August 9, 2024

I'm not sure how this is an environmental issue.

When I installed (using npm install node-sass) it installs just fine in a work directory.

When I copy the package.json file to an empty directory and run npm install I get the same error.

I'll work on figuring out which combination is causing the issue.

from api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.