Coder Social home page Coder Social logo

Comments (10)

xocasdashdash avatar xocasdashdash commented on May 13, 2024 5

i managed to fix this issue by downgrading to node 7 and npm 4

from markserv.

sainiaditi avatar sainiaditi commented on May 13, 2024 3

try
npm install npm -g
then do
npm install -g markserv

from markserv.

Sarafian avatar Sarafian commented on May 13, 2024 1

@dwieeb I'm trying to follow your workaround but I get the same error. This is what I do and I'm no expert with node.

In C:\Users\asarafian\Building MarkServ I've downloaded

Then extracted respectively to their own directory with the module name and made sure the root of the contents are within each folder.

  • C:\Users\asarafian\Building MarkServ\websocket.io
  • C:\Users\asarafian\Building MarkServ\markserv

From inside C:\Users\asarafian\Building MarkServ\websocket.io I executed:

  1. npm install
  2. npm link

From inside C:\Users\asarafian\Building MarkServ\markserv I executed:

  1. npm link websocket.io that verifies with

C:\Users\asarafian\Building MarkServ\markserv\node_modules\websocket.io -> C:\Users\asarafian\AppData\Roaming\npm\node_modules\websocket.io -> C:\Users\asarafian\Building MarkServ\websocket.io

  1. npm install which fails with the same error
908 silly resolveWithNewModule [email protected] checking installable status
909 silly fetchPackageMetaData error for websocket.io@git://github.com/LearnBoost/websocket.io.git#5f0b3799f50944bc4d1eb58acdef61c38883d6cf Command failed: C:\Program Files\Git\cmd\git.EXE checkout 5f0b3799f50944bc4d1eb58acdef61c38883d6cf
909 silly fetchPackageMetaData fatal: reference is not a tree: 5f0b3799f50944bc4d1eb58acdef61c38883d6cf
910 verbose stack Error: Command failed: C:\Program Files\Git\cmd\git.EXE checkout 5f0b3799f50944bc4d1eb58acdef61c38883d6cf
910 verbose stack fatal: reference is not a tree: 5f0b3799f50944bc4d1eb58acdef61c38883d6cf
910 verbose stack
910 verbose stack     at ChildProcess.exithandler (child_process.js:270:12)
910 verbose stack     at emitTwo (events.js:125:13)
910 verbose stack     at ChildProcess.emit (events.js:213:7)
910 verbose stack     at maybeClose (internal/child_process.js:927:16)
910 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

From the top of the log file the node and npm versions are:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install' ]
2 info using [email protected]
3 info using [email protected]

Unfortunately I can't downgrade to previous versions.

from markserv.

imhoffd avatar imhoffd commented on May 13, 2024

More info:

I tried to git clone [email protected]:LearnBoost/websocket.io.git and then git fetch origin 5f0b3799f50944bc4d1eb58acdef61c38883d6cf, but got the error:

error: Server does not allow request for unadvertised object 5f0b3799f50944bc4d1eb58acdef61c38883d6cf

Workaround:

I instead downloaded a zip (https://github.com/LearnBoost/websocket.io/archive/5f0b3799f50944bc4d1eb58acdef61c38883d6cf.zip), did npm install, npm link, cloned markserv locally and did npm link websocket.io, npm install, npm link and I have the markserv binary globally.

Lots of work, but worth it for this useful tool.

@F1LT3R please consider ditching websocket.io for ws or something.

from markserv.

matchavez avatar matchavez commented on May 13, 2024

+1 install failure. Is this abandoned?

from markserv.

imhoffd avatar imhoffd commented on May 13, 2024

FWIW I use grip now https://github.com/joeyespo/grip

from markserv.

Sarafian avatar Sarafian commented on May 13, 2024

@dwieeb problem with anything that depends on github API is throttling. I used MarkdownPS to easily generate markdown pages from PowerShell and then serve them for multiple people. GitHub API based solutions quickly run into the throttling issue.

from markserv.

F1LT3R avatar F1LT3R commented on May 13, 2024

Will try and get to this asap.

from markserv.

petulla avatar petulla commented on May 13, 2024

This repo works with @tuvistavie's fork.

npm install https://github.com/tuvistavie/markserv.git -g

from markserv.

F1LT3R avatar F1LT3R commented on May 13, 2024

This should be fixed now. Apologies for the wait.

  • Changes are in Master
  • Published to NPM

Could you npm install -g markserv and let me know if it's behaving correctly for you too?

from markserv.

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.