Issue with Mathjax-node installation

38 views
Skip to first unread message

Simbu R

unread,
Dec 22, 2017, 4:10:57 AM12/22/17
to MathJax Users
Hi,

For Latex to Mathml command line conversion, I have installed the NodeJs and try to install the 'mathjax-node' package. we got the below error log message from npm. Please check and share your commands....


Log file

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'mathjax-node' ]
2 info using n...@5.6.0
3 info using no...@v8.9.3
4 verbose npm-session 9ed280aebb3eb588
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/mathjax-node 318ms (from cache)
8 silly pacote range manifest for mathjax-node@^1.2.1 fetched in 373ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly install loadAllDepsIntoIdealTree
13 silly saveTree mathja...@1.2.1
13 silly saveTree +-- mathjax-...@1.0.0
13 silly saveTree | +-- mathja...@1.0.0-beta.0
13 silly saveTree | | +-- js...@9.8.3
13 silly saveTree | | | +-- ab...@1.0.4
13 silly saveTree | | | +-- acorn-...@1.0.9
13 silly saveTree | | | | `-- ac...@2.7.0
13 silly saveTree | | | +-- ac...@2.7.0
13 silly saveTree | | | +-- array...@1.0.0
13 silly saveTree | | | +-- content-t...@1.0.2
13 silly saveTree | | | +-- cs...@0.3.2
13 silly saveTree | | | +-- csss...@0.2.37
13 silly saveTree | | | +-- esco...@1.9.0
13 silly saveTree | | | | +-- esp...@3.1.3
13 silly saveTree | | | | +-- estra...@4.2.0
13 silly saveTree | | | | +-- esu...@2.0.2
13 silly saveTree | | | | +-- optio...@0.8.2
13 silly saveTree | | | | | +-- dee...@0.1.3
13 silly saveTree | | | | | +-- fast-lev...@2.0.6
13 silly saveTree | | | | | +-- le...@0.3.0
13 silly saveTree | | | | | | +-- prelu...@1.1.2
13 silly saveTree | | | | | | `-- type-...@0.3.2
13 silly saveTree | | | | | +-- prelu...@1.1.2
13 silly saveTree | | | | | +-- type-...@0.3.2
13 silly saveTree | | | | | `-- word...@1.0.0
13 silly saveTree | | | | `-- sourc...@0.5.7
13 silly saveTree | | | +-- html-encod...@1.0.2
13 silly saveTree | | | | `-- whatwg-...@1.0.3
13 silly saveTree | | | |   `-- iconv...@0.4.19
13 silly saveTree | | | +-- iconv...@0.4.19
13 silly saveTree | | | +-- nwma...@1.4.3
13 silly saveTree | | | +-- par...@1.5.1
13 silly saveTree | | | +-- req...@2.83.0
13 silly saveTree | | | | +-- aws-...@0.7.0
13 silly saveTree | | | | +-- aw...@1.6.0
13 silly saveTree | | | | +-- case...@0.12.0
13 silly saveTree | | | | +-- combine...@1.0.5
13 silly saveTree | | | | | `-- delayed...@1.0.0
13 silly saveTree | | | | +-- ext...@3.0.1
13 silly saveTree | | | | +-- foreve...@0.6.1
13 silly saveTree | | | | +-- form...@2.3.1
13 silly saveTree | | | | | +-- asyn...@0.4.0
13 silly saveTree | | | | | `-- mime-...@2.1.17
13 silly saveTree | | | | |   `-- mim...@1.30.0
13 silly saveTree | | | | +-- har-va...@5.0.3
13 silly saveTree | | | | | +-- a...@5.5.2
13 silly saveTree | | | | | | +-- c...@4.6.0
13 silly saveTree | | | | | | +-- fast-de...@1.0.0
13 silly saveTree | | | | | | +-- fast-json-sta...@2.0.0
13 silly saveTree | | | | | | `-- json-schem...@0.3.1
13 silly saveTree | | | | | `-- har-s...@2.0.0
13 silly saveTree | | | | +-- ha...@6.0.2
13 silly saveTree | | | | | +-- bo...@4.3.1
13 silly saveTree | | | | | | `-- ho...@4.2.0
13 silly saveTree | | | | | +-- cryp...@3.1.2
13 silly saveTree | | | | | | `-- bo...@5.2.0
13 silly saveTree | | | | | +-- ho...@4.2.0
13 silly saveTree | | | | | `-- sn...@2.1.0
13 silly saveTree | | | | +-- http-si...@1.2.0
13 silly saveTree | | | | | +-- asser...@1.0.0
13 silly saveTree | | | | | +-- jsp...@1.4.1
13 silly saveTree | | | | | | +-- extsp...@1.3.0
13 silly saveTree | | | | | | +-- json-...@0.2.3
13 silly saveTree | | | | | | `-- ver...@1.10.0
13 silly saveTree | | | | | |   `-- core-u...@1.0.2
13 silly saveTree | | | | | `-- ss...@1.13.1
13 silly saveTree | | | | |   +-- as...@0.2.3
13 silly saveTree | | | | |   +-- bcrypt...@1.0.1
13 silly saveTree | | | | |   | `-- twee...@0.14.5
13 silly saveTree | | | | |   +-- dash...@1.14.1
13 silly saveTree | | | | |   +-- ecc-...@0.1.1
13 silly saveTree | | | | |   | `-- js...@0.1.1
13 silly saveTree | | | | |   +-- get...@0.1.7
13 silly saveTree | | | | |   +-- js...@0.1.1
13 silly saveTree | | | | |   `-- twee...@0.14.5
13 silly saveTree | | | | +-- is-typ...@1.0.0
13 silly saveTree | | | | +-- isst...@0.1.2
13 silly saveTree | | | | +-- json-stri...@5.0.1
13 silly saveTree | | | | +-- mime-...@2.1.17
13 silly saveTree | | | | +-- oauth...@0.8.2
13 silly saveTree | | | | +-- perform...@2.1.0
13 silly saveTree | | | | +-- q...@6.5.1
13 silly saveTree | | | | +-- safe-...@5.1.1
13 silly saveTree | | | | +-- string...@0.0.5
13 silly saveTree | | | | +-- tough-...@2.3.3
13 silly saveTree | | | | | `-- puny...@1.4.1
13 silly saveTree | | | | +-- tunnel...@0.6.0
13 silly saveTree | | | | `-- uu...@3.1.0
13 silly saveTree | | | +-- s...@1.2.4
13 silly saveTree | | | +-- symbo...@3.2.2
13 silly saveTree | | | +-- tough-...@2.3.3
13 silly saveTree | | | +-- webidl-co...@3.0.1
13 silly saveTree | | | +-- whatwg-...@1.0.3
13 silly saveTree | | | +-- whatw...@3.1.0
13 silly saveTree | | | | `-- tr...@0.0.3
13 silly saveTree | | | `-- xml-name-...@2.0.1
13 silly saveTree | | +-- mat...@2.7.2
13 silly saveTree | | `-- ya...@3.32.0
13 silly saveTree | |   +-- came...@2.1.1
13 silly saveTree | |   +-- cl...@3.2.0
13 silly saveTree | |   | +-- string...@1.0.2
13 silly saveTree | |   | | +-- code-p...@1.1.0
13 silly saveTree | |   | | +-- is-fullwidt...@1.0.0
13 silly saveTree | |   | | | `-- number...@1.0.1
13 silly saveTree | |   | | `-- strip...@3.0.1
13 silly saveTree | |   | |   `-- ansi-...@2.1.1
13 silly saveTree | |   | +-- strip...@3.0.1
13 silly saveTree | |   | `-- wrap...@2.1.0
13 silly saveTree | |   +-- decam...@1.2.0
13 silly saveTree | |   +-- os-l...@1.4.0
13 silly saveTree | |   | `-- lc...@1.0.0
13 silly saveTree | |   |   `-- inve...@1.0.0
13 silly saveTree | |   +-- string...@1.0.2
13 silly saveTree | |   +-- windo...@0.1.4
13 silly saveTree | |   `-- y1...@3.2.1
13 silly saveTree | `-- ya...@3.32.0
13 silly saveTree +-- mathja...@1.2.1
13 silly saveTree | `-- js...@9.12.0
13 silly saveTree |   +-- acorn-...@3.1.0
13 silly saveTree |   | `-- ac...@4.0.13
13 silly saveTree |   +-- ac...@4.0.13
13 silly saveTree |   +-- webidl-co...@4.0.2
13 silly saveTree |   `-- whatw...@4.8.0
13 silly saveTree |     `-- webidl-co...@3.0.1
13 silly saveTree `-- mat...@2.7.2
14 verbose stack Error: Refusing to install package with name "mathjax-node" under a package
14 verbose stack also called "mathjax-node". Did you name your project the same
14 verbose stack as the dependency you're installing?
14 verbose stack
14 verbose stack For more information, see:
14 verbose stack     at checkSelf (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\install\validate-args.js:64:14)
14 verbose stack     at Array.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
14 verbose stack     at LOOP (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
14 verbose stack     at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\chain.js:18:7
14 verbose stack     at hasMinimumFields (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\install\validate-args.js:30:12)
14 verbose stack     at Array.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
14 verbose stack     at LOOP (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
14 verbose stack     at chain (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\chain.js:20:5)
14 verbose stack     at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\install\validate-args.js:16:5
14 verbose stack     at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\async-map.js:52:35
14 verbose stack     at Array.forEach (<anonymous>)
14 verbose stack     at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\async-map.js:52:11
14 verbose stack     at Array.forEach (<anonymous>)
14 verbose stack     at asyncMap (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\async-map.js:51:8)
14 verbose stack     at module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\install\validate-args.js:15:3)
14 verbose stack     at Array.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
15 verbose cwd C:\Users\963
16 verbose Windows_NT 6.1.7601
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "mathjax-node"
18 verbose node v8.9.3
19 verbose npm  v5.6.0
20 error code ENOSELF
21 error Refusing to install package with name "mathjax-node" under a package
21 error also called "mathjax-node". Did you name your project the same
21 error as the dependency you're installing?
21 error
21 error For more information, see:
22 verbose exit [ 1, true ]

Peter Krautzberger

unread,
Dec 22, 2017, 4:16:25 AM12/22/17
to mathja...@googlegroups.com
Hi,

You probably named your own project mathjax-node which npm does not allow.

> [14 verbose stack] Error: Refusing to install package with name "mathjax-node" under a package
> [14 verbose stack] also called "mathjax-node". Did you name your project the same
> [14 verbose stack] as the dependency you're installing?

Try renaming it. Otherwise, you will need to provide more information.

Regards,
Peter.



13 silly saveTree | | | | | | +-- fast-json-stable-stringify@2.0.0

--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simbu R

unread,
Dec 22, 2017, 4:27:20 AM12/22/17
to MathJax Users
Hi,

 I have followed the https://github.com/mathjax/MathJax-node guideline and using the below command for installation.

npm install mathjax-node

Peter Krautzberger

unread,
Dec 22, 2017, 4:38:59 AM12/22/17
to mathja...@googlegroups.com
Hi,

That command works. The error you get indicates that the folder you run this command from has a conflicting package.json. Are you perhaps running this command in a copy of the github repository? That would cause this error as it's the wrong way to go about npm; in a copy of the repository you would run `npm install` to install the dependencies instead.

If you run `$ npm install mathjax-node` in in a new and empty folder, it should work fine. If not, you have some issue with your node / npm installation.

Regards,
Peter.



Simbu R

unread,
Dec 27, 2017, 8:45:35 AM12/27/17
to MathJax Users
Hi Peter,

Thanks, Its working fine with new folder.

Regards,
Simbu
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages