Comments (14)
I'm sorry that the docs are somewhat misleading. I haven't published this project to npm yet, you can only install it by npm install sms-cli@derhuerst/sms-cli
for now. Will publish it.
from sms-cli.
Published [email protected]
.
from sms-cli.
Thanks for prompted response. Now there is a problem with text-prompt@^0.1.1
I tried 0.1.0 and 0.1 but these give same issue
C:\Users\pmeni_000\Documents\twilio\sms-cli>npm install -g [email protected]
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "[email protected]"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: text-prompt@^0.1.1
npm ERR! notarget Valid install targets:
npm ERR! notarget 0.1.0
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'sms-cli'
npm ERR! notarget
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\pmeni_000\Documents\twilio\sms-cli\npm-debug.log
from sms-cli.
[email protected]
should work. I haven't published [email protected]
yet, will fix it.
from sms-cli.
Published [email protected]
, please try again.
from sms-cli.
Getting closer but getting Error: Cannot find module 'window-size'. See below.
Is that the correct window-size as there are more than one?
FYI - your README.md says "todo" for how to run this
Also, the package.json file seems to be missing a few dependencies
C:\Users\pmeni_000\Documents\twilio\sms-cli>node .
C:\Users\pmeni_000\Documents\twilio\sms-cli>sms help
module.js:471
throw err;
^
Error: Cannot find module 'window-size'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\pmeni_000\AppData\Roaming\npm\node_modules\sms-cli\ui.js:13:27)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
C:\Users\pmeni_000\Documents\twilio\sms-cli>npm install --save window-size
[email protected] C:\Users\pmeni_000\Documents\twilio\sms-cli
`-- [email protected]
C:\Users\pmeni_000\Documents\twilio\sms-cli>sms help
module.js:471
throw err;
^
Error: Cannot find module 'window-size'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\pmeni_000\AppData\Roaming\npm\node_modules\sms-cli\ui.js:13:27)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
from sms-cli.
I guess there will be another thing broken now. :P Published [email protected]
, please try once more.
from sms-cli.
We are getting there. Now F-Fetch and D-Delete work, but R-Respond and C-Compose do not and give the following error:
F to fetch | ctrl+D to leave | C to compose
(node:49456) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
The way I run this is (after running install):
c:\twilio\sms-cli>node .
c:\twilio\sms-cli>sms
from sms-cli.
Figured it out - in ui.js query: you have the following line:
const cmd = (process.env.EDITOR || 'nano')
In windows I do not have 'nano' so I did the following:
c:\twilio\sms-cli>set EDITOR=nodepad.exe
and then re-ran the program and now it woks for C and for R
from sms-cli.
Just to recap for Windows:
Installing
cmd
npm install -g [email protected]
Usage
#load editor and twilio account information to environment
#env.bat contains the following
#set TWILIO_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#set TWILIO_TOKEN=29yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
#set TWILIO_NUMBER=+1aaafffnnnn
#set EDITOR=nodepad.exe
env.bat
#run index.js
node .
#run sms help (does not say much)
sms -help
#run sms system
sms
In notepad type message (or number), save and exit
from sms-cli.
I'm willing to make this work on Windows. But I don't have a Windows machine to test on.
If i call notepad.exe
from the command line, will the command run until I close the window? Also, will I be able to pass a file to edit?
from sms-cli.
from sms-cli.
Can you confirm it's working when installing from master
?
# either
npm i -g sms-cli@derhuerst/sms-cli
sms
# or
git clone https://github.com/derhuerst/sms-cli.git
cd sms-cli
npm install
./bin.js
from sms-cli.
I published [email protected]
to npm.
from sms-cli.
Related Issues (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 sms-cli.