Giter VIP home page Giter VIP logo

Comments (16)

fvdm avatar fvdm commented on June 8, 2024

The relevent section of the installer:

https://github.com/isaacs/npm/blob/master/lib/install.js

    // if it's identical to its parent, then it's probably someone
    // doing `npm install foo` inside of the foo project.  Print
    // a warning, and skip it.
    if (parent && parent.name === what && !npm.config.get("force")) {
      log.warn("install", "Refusing to install %s as a dependency of itself"
              , what)
      return cb(null, [])
    }

Are you running npm install tk102 directly from a commandline or some other way?

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

thanks alot my friend

I am running npm directly from CMD windows command line

sorry about my questions

do you mean after paste this code

if (parent && parent.name === what && !npm.config.get("force")) {
log.warn("install", "Refusing to install %s as a dependency of itself"
, what)
return cb(null, [])
}



the problem will solved ?? if answer is yes please tell me where to
past this code


On 6/18/12, Franklin van de Meent
<[email protected]>
wrote:
> The relevent section of the installer:
>
> https://github.com/isaacs/npm/blob/master/lib/install.js
> ```js
>     // if it's identical to its parent, then it's probably someone
>     // doing `npm install foo` inside of the foo project.  Print
>     // a warning, and skip it.
>     if (parent && parent.name === what && !npm.config.get("force")) {
>       log.warn("install", "Refusing to install %s as a dependency of
> itself"
>               , what)
>       return cb(null, [])
>     }
> ```
>
> Are you running **npm install tk102** directly from a commandline or some
> other way?
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/fvdm/nodejs-tk102/issues/5#issuecomment-6385969
>


-- 
Thanks & Regards

Mohammed Abdulrahman

from nodejs-tk102.

fvdm avatar fvdm commented on June 8, 2024

No, you don't need to use that code. I only mentioned it as a reference to figure out what the warning means.

I do not know what is causing the problem, it may be a compatibility issue with Windows. I only tested successfully on Linux systems.

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

thanks again this problem solved and I have faced a new one

this is the photo of it

http://img9.imageshack.us/img9/8094/17424966.jpg

sorry again for this questions and making you busy

On 6/18/12, Mohammed Abdulrahman [email protected] wrote:

thanks alot my friend

I am running npm directly from CMD windows command line

sorry about my questions

do you mean after paste this code

if (parent && parent.name === what && !npm.config.get("force")) {
log.warn("install", "Refusing to install %s as a dependency of
itself"
, what)
return cb(null, [])
}



the problem will solved ?? if answer is yes please tell me where to
past this code


On 6/18/12, Franklin van de Meent
<[email protected]>
wrote:
> The relevent section of the installer:
>
> https://github.com/isaacs/npm/blob/master/lib/install.js
> ```js
>     // if it's identical to its parent, then it's probably someone
>     // doing `npm install foo` inside of the foo project.  Print
>     // a warning, and skip it.
>     if (parent && parent.name === what && !npm.config.get("force")) {
>       log.warn("install", "Refusing to install %s as a dependency of
> itself"
>               , what)
>       return cb(null, [])
>     }
> ```
>
> Are you running **npm install tk102** directly from a commandline or some
> other way?
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/fvdm/nodejs-tk102/issues/5#issuecomment-6385969
>


--
Thanks & Regards

Mohammed Abdulrahman


Thanks & Regards

Mohammed Abdulrahman

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

and this is the error log:

info it worked if it ends with ok
verbose cli [ 'C:\Program Files\nodejs\node.exe',
verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
verbose cli 'install',
verbose cli 'c:\test\tk102' ]
info using [email protected]
info using [email protected]
verbose C:\Program Files\nodejs\node.exe node symlink
verbose config file C:\Users\mohamed.npmrc
verbose config file C:\Program Files\nodejs\etc\npmrc
verbose config file C:\Program Files\nodejs\node_modules\npm\npmrc
verbose caching C:\node\package.json
verbose loadDefaults [email protected]
verbose from cache C:\node\package.json
verbose readDependencies: using package.json deps
verbose cache add [ 'c:\test\tk102', null ]
silly cache add: name, spec, args [ undefined, 'c:\test\tk102', [ 'c:\test\tk102', null ] ]
verbose parsed url { protocol: 'c:',
verbose parsed url host: '',
verbose parsed url hostname: '',
verbose parsed url href: 'c:\test\tk102',
verbose parsed url pathname: '\test\tk102',
verbose parsed url path: '\test\tk102' }
ERR! Could not install: c:\test\tk102
ERR! Error: ENOENT, stat 'c:\test\tk102'
ERR! You may report this log at:
ERR! http://github.com/isaacs/npm/issues
ERR! or email it to:
ERR! [email protected]
ERR!
ERR! System Windows_NT 6.0.6001
ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "c:\test\tk102"
ERR! cwd C:\node
ERR! node -v v0.6.19
ERR! npm -v 1.1.24
ERR! path c:\test\tk102
ERR! code ENOENT
ERR! message ENOENT, stat 'c:\test\tk102'
ERR! errno {}
verbose exit [ 1, true ]

from nodejs-tk102.

fvdm avatar fvdm commented on June 8, 2024

Does c:\test\tk102 exist?

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

yes sure it is exists

all 4 files for tk102 project are exists in this directory

this is a remote desk top server can you please take the user name and password

and see the problem that you may solve it.

On 6/18/12, Franklin van de Meent
[email protected]
wrote:

Does c:\test\tk102 exist?


Reply to this email directly or view it on GitHub:
#5 (comment)

Thanks & Regards

Mohammed Abdulrahman

from nodejs-tk102.

fvdm avatar fvdm commented on June 8, 2024

I think you should ask the official support for Node.js, I'm not so good with Windows ;)

https://github.com/joyent/node

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

Thanks alot my friend ..

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

I think problem solved when just type npm install tk102 witout c:\test

please see this picture and if it installed right what is the next step

http://img268.imageshack.us/img268/2773/17758571.jpg

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

how can I start the sever to listen to tk102 trackers and how to view the that raw data and final data

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

now the tk102 installed successful but when trying to run the server using this code :

var server = require('tk102');

// start server
server.createServer({
port: 1337
});

// incoming data
server.on( 'track', function( gps ) {
console.log( gps );
});

I have hot this error message:

raw is not defined

http://img843.imageshack.us/img843/7622/46587478.jpg

from nodejs-tk102.

fvdm avatar fvdm commented on June 8, 2024

Ah yes I fixed that bug on my server already, but forgot to commit it to github and npm. Will do that right now.

from nodejs-tk102.

fvdm avatar fvdm commented on June 8, 2024

OK it should work now, I'll test when my tracker's battery is recharged.

Command npm update should get you the latest version

from nodejs-tk102.

mabdulraheman avatar mabdulraheman commented on June 8, 2024

OK I will re install every thing again and tell you about the result

Thanks and regards

On 6/19/12, Franklin van de Meent
[email protected]
wrote:

OK it should work now, I'll test when my tracker's battery is recharged.

Command npm update should get you the latest version


Reply to this email directly or view it on GitHub:
#5 (comment)

Thanks & Regards

Mohammed Abdulrahman

from nodejs-tk102.

fvdm avatar fvdm commented on June 8, 2024

npm update tk102 might be a better way, that will skip the other node packages.

from nodejs-tk102.

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.