Code Monkey home page Code Monkey logo

node-nightly's Introduction

A computer polyglot. CLI, web && FOSS philosopher.

Member of the Technical Staff at PayPal.

Ambidextrous, native Bangalorean! Currently living in CA.

Blog's about programming and have archived his old blog.

Curator JSfeatures.in. Tech Speaker and Podcaster.

Community leader at DuckDuckGo. Members - Node.js Foundation. TC39 delegate.

Google Developer Expert in Web and Payments domains.

Feel free to AMA.

@gnumanth on twitter.

node-nightly's People

Contributors

agjs avatar bhaveshgohel avatar fengmk2 avatar hemanth avatar icambron avatar kakts avatar krokofant avatar madneal avatar patrickjs avatar paulirish avatar shaunwarman avatar snyk-bot avatar tarungarg546 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-nightly's Issues

EMFILE: too many open files, open

ran into this problem with running with webpack

{ Error: EMFILE: too many open files, open '/Users/Hendrixer/.nvm/versions/node/v6.2.1/lib/node_modules/node-nightly/node-v7.0.0-nightly20160722b3127df59a-darwin-x64/lib/node_modules/npm/node_modules/iferr/index.js'
    at Error (native)
  errno: -24,
  code: 'EMFILE',
  syscall: 'open',
  path: '/Users/Hendrixer/.nvm/versions/node/v6.2.1/lib/node_modules/node-nightly/node-v7.0.0-nightly20160722b3127df59a-darwin-x64/lib/node_modules/npm/node_modules/iferr/index.js' }

Windows support?

Hey @hemanth! I heard that this doesn't work on Windows. What needs to happen to get this to work on Windows?

Using node-nightly when there is no internet connectivity

node-nightly check the latest version when executed, so it's unavailable when there is no internet connectivity. Just recently, I want to use node-nightly to run some script but there is no WIFI nearby. Is it possible to add some options like "--ignore-version" to use node-nightly when I have no network? Maybe I can do this and make a pull request.

use of const in strict mode

aseds@asedsami ~/c/l/qa> sudo node-nightly
[sudo] password for aseds: 

/usr/lib/node_modules/node-nightly/cli.js:3
const spawn = require('cross-spawn').spawn;
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:929:3

Issue with Node 7.9.0 32 bit

When running node-nightly on 32-bit version, process.arch returns "ia32" which doesn't exist anywhere in node repositories neither in the files array in node-nightly-version module.

I've fixed this for myself by modifying the index.js in node-nightly.

// line 24
arch = process.arch === 'ia32' ? 'x86' : process.arch,

This fixed it for me. I'm not gonna do the pull request since this can be done better. I just wanted to inform you of this issue as other people might have the same issues.

Pick architecture

I would find it useful to have a flag to switch between the 32/64 bit version. Currently it uses whichever is already installed.

node-nightly --arch 32 would download the same version for x86.

node-nightly --upgrade --arch 32 when upgrading, to force x86.

I could do a PR?

weird TypeError

node version: 6.4.0
OS: Ubuntu 16.04
Logs:

 $node-nightly -v
/usr/lib/node_modules/node-nightly/node_modules/node-nightly-version/index.js:6
const osArch = `${process.env._system_name.toLowerCase()}-${process.arch}`;
                                          ^

TypeError: Cannot read property 'toLowerCase' of undefined

"Please check your internet connectivity" error message

Hi,
I can't run node-nightly as it thinks I'm offline (@ home, @ work, with WiFi or wired).

~ ❯❯❯ node-nightly --upgrade
Checking for update...
You are using latest version already.
~ ❯❯❯ node-nightly
Downloading the nightly version, hang on...
 Please check your internet connectivity.
~ ❯❯❯ node -v
v6.7.0

It seems that the connectivity check is failing (sindresorhus/is-online#29 maybe) although I'm on OS X 10.11.6.

Commenting the reportIfOffline() function call fixed it for me.

~ ❯❯❯ node-nightly
Downloading the nightly version, hang on...
node-nightly is available on your CLI!
~ ❯❯❯ node-nightly
> console.log('awesome')
awesome

change upgrade flow

I don't think you should do a Firefox-style upgrade prompt. "hey i know you're trying to start using firefox but do you want to interrupt what you're doing to see if you wanna upgrade." :p

The common action is people will be repeatedly running node-nightly with inspect flags, and you don't want to respond with "N" each time.

I was thinking about something that passively notified you when quitting the node process.. like..

> node-nightly --inspect index.js
Log from index.js!
^C
New nightly available. To upgrade: `node-nightly --upgrade`
> 

However, I think that'll be too noisy, even. I think it's better to leave that up to the user and just allow a --upgrade flag they can use whenever they want.

wdyt?

Error: EPERM: operation not permitted, rename node-nightly required

node-nightly --inspect --debug-brk build/build.js

Downloading the nightly version, hang on...
Error: EPERM: operation not permitted, rename 'C:\Users\clu\AppData\Roaming\npm\node_modules\node-nightly/node-v15.0.0-nightly20200518ef1eb8d439-win-x64' -> 'C:\Users\clu\AppData\Roaming\npm\node_modules\node-nightly/node-nightly'
at renameSync (fs.js:661:3)
at C:\Users\clu\AppData\Roaming\npm\node_modules\node-nightly\index.js:45:9 {
errno: -4048,
syscall: 'rename',
code: 'EPERM',
path: 'C:\Users\clu\AppData\Roaming\npm\node_modules\node-nightly/node-v15.0.0-nightly20200518ef1eb8d439-win-x64',
dest: 'C:\Users\clu\AppData\Roaming\npm\node_modules\node-nightly/node-nightly'
}

Using node-nightly behind a proxy

Hey,

I want to use node-nightly at school but we have a proxy, i've already configured git and npm to use the proxy, but when i type node-nightly it says i have no internet connection

Thanks,
Mika

Screenshot

__dirname problems?

it repeatedly tries to download. always.

i added this

console.log(`${__dirname}/node-nightly`);

and i get this logged:

/Users/paulirish/.homebrew/lib/node_modules/node-nightly/node-nightly

I think you missed one location with dirname.. PR incoming.

Installing modules with binary bindings

Using node-nightly I get errors like Error: Module version mismatch. Expected 51, got 48. for modules with native bindings.

I tried doing something like env NODE_PATH=/usr/local/lib/node_modules/node-nightly/node-nightly/ /usr/local/lib/node_modules/node-nightly/node-nightly/bin/npm install bcrypt but that doesn't seem to help

Add notes that "Run as Administrator is required"

> npm i -g node-nightly

C:\Users\REDACTED\AppData\Roaming\npm\node-nightly -> C:\Users\REDACTED\AppData\Roaming\npm\node_modules\node-nightly\cli.js
+ [email protected]
added 160 packages in 10.488s

> node-nightly

Downloading the nightly version, hang on...
{ Error: EPERM: operation not permitted, rename 'C:\Users\tdaniely\AppData\Roaming\npm\node_modules\node-nightly\node-v10.0.0-nightly20180213e782715d0a-win-x64' -> 'C:\Users\tdaniely\AppData\Roaming\npm\node_modules\node-nightly\node-nightly'
    at fs.renameSync (fs.js:784:18)
    at download.then._ (C:\Users\tdaniely\AppData\Roaming\npm\node_modules\node-nightly\index.js:45:9)
    at <anonymous>
  errno: -4048,
  code: 'EPERM',
  syscall: 'rename',
  path: 'C:\\Users\\tdaniely\\AppData\\Roaming\\npm\\node_modules\\node-nightly\\node-v10.0.0-nightly20180213e782715d0a-win-x64',
  dest: 'C:\\Users\\tdaniely\\AppData\\Roaming\\npm\\node_modules\\node-nightly\\node-nightly' }

Should be documented.

errors when upgrade

After installing node-nightly, when I try to execute node-nightly it indicates to upgrade. But when I try to execute `node-nightly --upgrade':

node-nightly --upgrade
Checking for update...
Deleting old version
Deleted!
Installing newer version..
{ Error: EPERM: operation not permitted, rename 'C:\Users\neal1\AppData\Roaming\npm\node_modules\node-nightly\node-v8.0.0-nightly2017051384fc069b95-win-x64' -> 'C:\Users\neal1\AppData\Roaming\npm\node_modules\node-nightly\node-nightly'
    at fs.renameSync (fs.js:776:18)
    at download.then._ (C:\Users\neal1\AppData\Roaming\npm\node_modules\node-nightly\index.js:45:9)
  errno: -4048,
  code: 'EPERM',
  syscall: 'rename',
  path: 'C:\\Users\\neal1\\AppData\\Roaming\\npm\\node_modules\\node-nightly\\node-v8.0.0-nightly2017051384fc069b95-win-x64',
  dest: 'C:\\Users\\neal1\\AppData\\Roaming\\npm\\node_modules\\node-nightly\\node-nightly' }

My OS is win10 and my node version is 7.9.0. And I have tried two solutions:

  1. execute npm cache clean
  2. disable avast in my computer
    Unfortunately, both do not work at all.

GotError [HTTPError]: Response code 404 (Not Found)

Running node-nightly and it tries to pull down the x64 file, but it's not found in that directory.

 host: 'nodejs.org',
  hostname: 'nodejs.org',
  method: 'GET',
  path: '/download/nightly/v21.0.0-nightly202306022fca7ea2be/node-v21.0.0-nightly202306022fca7ea2be-darwin-x64.tar.gz',
  protocol: 'https:',
  url: 'https://nodejs.org/download/nightly/v21.0.0-nightly202306022fca7ea2be/node-v21.0.0-nightly202306022fca7ea2be-darwin-x64.tar.gz',
  statusCode: 404,
  statusMessage: 'Not Found',
  headers: {
    date: 'Fri, 02 Jun 2023 15:07:06 GMT',
    'content-type': 'text/html',
    'transfer-encoding': 'chunked',
    connection: 'close',
    'cache-control': 'private, no-store, max-age=0',
    'cf-cache-status': 'BYPASS',
    vary: 'Accept-Encoding',
    'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
    'x-content-type-options': 'nosniff',
    server: 'cloudflare',
    'cf-ray': '7d109aa4fc3906f4-ATL',
    'content-encoding': 'gzip'
  }

image

Node Version: 18.15.0
npm version: 9.5.0
OS: macOS

How to inspect existing multi-arg bin commands from other cli tools.

Nice job on this guys.

I'm working on the angular-cli and I'd like to be able to debug some of the commands we use like:
ng build
ng serve
ng build --watch --environment='subtropical'

I use node nightly like the following:
node-nightly --inspect --debug-brk ng build

However it looks like only the ng is picked up and not the secondary command. Any advice?

TypeError: Cannot read properties of undefined (reading 'version')

$ npm install --global node-nightly
$ node-nightly
Checking for update...
TypeError: Cannot read properties of undefined (reading 'version')
    at /usr/local/lib/node_modules/node-nightly/node_modules/node-nightly-version/index.js:17:70
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
$ cat /usr/local/lib/node_modules/node-nightly/node_modules/node-nightly-version/index.js
'use strict';
const fetch = require('isomorphic-fetch');
const nightlyVersions = require('node-nightly-versions');
const osArch = `${process.platform}-${process.arch}`;
const osVerMap = {
  'win32-x64':'win-x64-msi',
  'win32-x86':'win-x86-msi',
  'darwin-x64':'osx-x64-pkg',//darwin is os name for osx
  'darwin-x86':'osx-x86-tar',
  'linux-x64':'linux-x64',
  'linux-x86':'linux-x86',
  'sunos-x64':'sunos-x64',
  'sunos-x86':'sunos-x86'
}
$ npm -v
8.5.5

$ uname -a
Darwin MBP 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64

Adjust command line options

Related to #36

I propose that --version outputs the currently used version and that something like --use would decide which version to install &/ use. This would be be more clear and follow the common --version convention for displaying version information.

404 - node-nightly

Just tried node-nightly. Following is what I am getting on first time usage of the command node-nightly

{ [HTTPError: Response code 404 (Not Found)] message: 'Response code 404 (Not Found)', host: 'nodejs.org', hostname: 'nodejs.org', method: 'GET', path: '/download/nightly/v7.0.0-nightly201608085111e789e6/node-v7.0.0-nightly201608085111e789e6-darwin-x64.tar.gz', statusCode: 404, statusMessage: 'Not Found', bufferedData: <Buffer > }

What happened to the download link? Why 404? Am I missing something?

I am using Mac El Capitan.
Node - v5.2.0
NPM - 3.3.12

self signed certificate in certificate chain

node-nightly --inspect --debug-brk build/build.js

Downloading the nightly version, hang on...
FetchError: request to https://nodejs.org/download/nightly/index.json failed, reason: self signed certificate in certificate chain
at ClientRequest. (C:\Users\clu\AppData\Roaming\npm\node_modules\node-nightly\node_modules\node-fetch\index.js:133:11)
at ClientRequest.emit (events.js:310:20)
at TLSSocket.socketErrorListener (_http_client.js:426:9)
at TLSSocket.emit (events.js:310:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
type: 'system',
errno: 'SELF_SIGNED_CERT_IN_CHAIN',
code: 'SELF_SIGNED_CERT_IN_CHAIN'
}

404 on initial launch

Downloading the nightly version, hang on...
{ HTTPError
    at EventEmitter.ee.on.res (/usr/local/lib/node_modules/node-nightly/node_modules/got/index.js:182:24)
    at emitOne (events.js:96:13)
    at EventEmitter.emit (events.js:189:7)
    at Immediate.setImmediate (/usr/local/lib/node_modules/node-nightly/node_modules/got/index.js:61:8)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)
  message: 'Response code 404 (Not Found)',
  host: 'nodejs.org',
  hostname: 'nodejs.org',
  method: 'GET',
  path: '/download/nightly/undefined/node-undefined-darwin-x64.tar.gz',
  statusCode: 404,
  statusMessage: 'Not Found',
  bufferedData: <Buffer > }

But after trying out:
node-nightly --upgrade

It works!

I thought it was notable that the error specifies undefined in the path.

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.