Comments (9)
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.
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.
$ 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.
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.
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.
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.
bump
from api.
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.
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)
- docker swarm - Can't find DB HOT 4
- Generating destructive operations in a device while creating data on another borks an ID HOT 1
- Allow multiple account (Sync ID) and selective folder to sync HOT 1
- xbrowsersync claims "Invalid credentials" HOT 4
- Can't make any sync IDs HOT 1
- How can an xBrowserSync host delete data that is no longer used? HOT 2
- [Docker images] Create a single user version who use sq-lite for storing.
- Feature request: Support Firefox keyword field HOT 1
- Other favorites and Other bookmarks not syncing between Edge and Chrome
- It is not accepting encryption id/ password
- node dist/api.js fails with "cannot find module bunyan" HOT 3
- Is dead? HOT 3
- mobile app does not work but windows chrome does HOT 2
- How do I change the synchronization interval
- C一下!今年这件卫衣很nice
- 肝了半个月,我整理出了这篇嵌入式开发学习学习路线+知识点梳理)
- Add Folder functionality?
- "err":{"message":"option usefindandmodify is not supported"
- Is there an option to limit new users? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.