Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on Win 10 #1

Closed
pmenico opened this issue Feb 13, 2017 · 14 comments
Closed

Cannot install on Win 10 #1

pmenico opened this issue Feb 13, 2017 · 14 comments

Comments

@pmenico
Copy link

pmenico commented Feb 13, 2017

I get this error trying to install you project. have you removed this from npm registry?

C:\Users\pmeni_000\Documents\twilio\sms-cli>npm install -g sms-cli
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" "sms-cli"
npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/sms-cli
npm ERR! 404
npm ERR! 404  'sms-cli' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\pmeni_000\Documents\twilio\sms-cli\npm-debug.log
@derhuerst
Copy link
Owner

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.

@derhuerst
Copy link
Owner

Published sms-cli@0.1.0.

@pmenico
Copy link
Author

pmenico commented Feb 14, 2017

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 sms-cli@0.1.0
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" "sms-cli@0.1.0"
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

@derhuerst
Copy link
Owner

text-prompt@0.1.0 should work. I haven't published text-prompt@0.1.1 yet, will fix it.

@derhuerst
Copy link
Owner

Published text-prompt@0.1.1, please try again.

@pmenico
Copy link
Author

pmenico commented Feb 15, 2017

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
sms-cli@0.1.0 C:\Users\pmeni_000\Documents\twilio\sms-cli
`-- window-size@0.3.0

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)

@derhuerst derhuerst reopened this Feb 15, 2017
@derhuerst
Copy link
Owner

I guess there will be another thing broken now. :P Published sms-cli@0.1.1, please try once more.

@pmenico
Copy link
Author

pmenico commented Feb 16, 2017

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

@pmenico
Copy link
Author

pmenico commented Feb 16, 2017

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

@pmenico
Copy link
Author

pmenico commented Feb 16, 2017

Just to recap for Windows:

Installing

cmd
npm install -g sms-cli@0.1.1

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

@derhuerst
Copy link
Owner

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?

@pmenico
Copy link
Author

pmenico commented Feb 16, 2017 via email

@derhuerst
Copy link
Owner

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

@derhuerst
Copy link
Owner

I published sms-cli@0.1.2 to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants