Giter Club home page Giter Club logo

Comments (5)

RogerHardiman avatar RogerHardiman commented on August 15, 2024

Hi
You have to type something like

npm build

Or run 'gulp' to convert .ts files into .js files

Roger

-------- Original message --------
From: Micka41 [email protected]
Date:02/08/2016 2:17 PM (GMT+00:00)
To: BreeeZe/rpos [email protected]
Subject: [BreeeZe/rpos] The lastest version raspberry (#22)

I RPOS 0.1.0 and I run rpos.js all goes well
I tried the latest release of RPOS and impossible to launch (with ts-node?), I to a file not found error typing main.d.ts
How to launch the latest version of RPOS on Raspberry with PICAM?
Thank you.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from rpos.

Micka41 avatar Micka41 commented on August 15, 2024

Hi
I have launch
npm install
and then
ts-node rpos.ts

but i have this :

/usr/lib/node_modules/ts-node/src/index.ts:259
throw new TSError(diagnosticList)
^
TSError: ⨯ Unable to compile TypeScript
rpos.ts (27,1): Cannot find name 'require'. (2304)
rpos.ts (29,23): Cannot find module 'http'. (2307)
rpos.ts (30,26): Cannot find module 'express'. (2307)
rpos.ts (38,13): Cannot find name 'require'. (2304)
rpos.ts (39,26): Cannot find name 'require'. (2304)
rpos.ts (2,1): File '/home/pi/rpos/typings/main.d.ts' not found. (6053)
at getOutput (/usr/lib/node_modules/ts-node/src/index.ts:259:17)
at /usr/lib/node_modules/ts-node/src/index.ts:268:16
at Object.compile (/usr/lib/node_modules/ts-node/src/index.ts:404:17)
at loader (/usr/lib/node_modules/ts-node/src/index.ts:290:33)
at Object.require.extensions.(anonymous function) as .ts
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)
at Object. (/usr/lib/node_modules/ts-node/src/_bin.ts:179:12)

What does it means ?

Thanks

ts-node v1.2.2
node v6.3.1
npm 3.10.3
typesrcipt 1.8.10

from rpos.

RogerHardiman avatar RogerHardiman commented on August 15, 2024

After your npm install you need to run gulp

Just tested it on my Mac. checked out a fresh copy of the source tree, ran npm install and then ran gulp and it compiled fine. I think I had installed gulp with npm install -g gulp so it was installed for all projects

Roger

from rpos.

RogerHardiman avatar RogerHardiman commented on August 15, 2024

Just tried ts-node from my dev branch and it worked. Had to npm install -g ts-node and npm install -g typescript first but then it seemed to work.

from rpos.

RogerHardiman avatar RogerHardiman commented on August 15, 2024

I've not heard from @Micka41 for 9 months so assume the problem was sorted.

from rpos.

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.