recentpopularlog in

kme : nodejs   99

« earlier  
GitHub - h2non/nar: node.js application archive - create self-contained binary like executable applications that are ready to ship and run
node.js application archive - create self-contained binary like executable applications that are ready to ship and run - h2non/nar
shroudedscript  shrouding  javascript  nodejs  commandline  packaging 
june 2019 by kme
GitHub - btford/write-good: Naive linter for English prose
Naive linter for English prose. Contribute to btford/write-good development by creating an account on GitHub.
english  language  grammar  writing  linter  stylechecker  nodejs  npm 
june 2019 by kme
GitHub - slap-editor/slap: Sublime-like terminal-based text editor
Sublime-like terminal-based text editor. Contribute to slap-editor/slap development by creating an account on GitHub.
editor  terminal  cli  console  nodejs  sublime  texteditor  alternativeto  sublimetext 
may 2019 by kme
How To Install Node.js on a CentOS 7 server | DigitalOcean | https://www.digitalocean.com/
To gain access to the EPEL repo, you must modify the repo-list of your installation. Fortunately, we can reconfigure access to this repository by installing a package available in our current repos called epel-release.
<code class="language-bash">
sudo yum install epel-release
</code>
nodejs  centos  node  packagemangement  sysadmin  solution 
january 2019 by kme
Resolving EACCES permissions errors when installing packages globally
<code class="language-bash"># create a directory for global installations:
mkdir ~/.npm-global

# Configure npm to use the new directory path:
npm config set prefix '~/.npm-global'

# open or create a ~/.profile file and add this line:
export PATH=~/.npm-global/bin:$PATH

# update your system variables:
source ~/.profile

# install a package globally without using sudo:
npm install -g jshint</code>
javascript  nodejs  node  packagemanagement  errormessage  solution  annoyance  dammitbrain 
november 2018 by kme
hapi.js
A rich framework for building applications and services

hapi enables developers to focus on writing reusable application logic instead of spending time building infrastructure.
nodejs  javascript  api  framework  webdevel  library 
december 2017 by kme
npm command to uninstall unused packages in Node.js - Stack Overflow


Run npm prune to unbuild modules not listed in package.json.

From npm help prune:

This command removes "extraneous" packages. If a package name is provided, then only packages matching one of the supplied names are removed.

Extraneous packages are packages that are not listed on the parent package's dependencies list.

If the --production flag is specified, this command will remove the packages specified in your devDependencies.

npm  nodejs  packagemanagement  solution 
september 2017 by kme
Cannot find module 'shelljs' after installing shelljs with npm · Issue #109 · shelljs/shelljs · GitHub
The problem was that for some reason the NODE_PATH env var was not se on Mavericks.


Try: ~/.local/lib/node_modules/lib/node_modules
nodejs  npm  errormessage  javascript  webdevel  mac  osx  maybesolution 
september 2017 by kme
nodejs setup on Dreamhost VPS
git clone https://github.com/joyent/node.git
1) Make a download dir to store the node source and download it.

mkdir downloads
cd downloads
git clone https://github.com/joyent/node.git
Find the latest version

2) List all of the tags in the repository, and check out the most recent.
git tag
git checkout v0.12


At node v0.12.8-pre, 'npm' v2.13.4 was already present in 'node_modules'; no need to install it separately.
dreamhost  npm  nodejs  sharedhosting  howto  fromsource  solution 
august 2017 by kme
node.js - npm can't find package.json - Stack Overflow
The error message I got was "npm WARN enoent ENOENT: no such file or directory, open '/usr/bin/package.json'" using the SCL 'rh-nodejs4' package. Using the '-g' (global) option worked.
I'll be brief but deadly. :) install -d will not work for you. It's simple. Try

$ npm install -g express
nodejs  npm  errormessage  centos  centos6  solution 
august 2017 by kme
ruby - Cannot install Aptana Studio 3.6 on Windows - Stack Overflow
The error message is "Error 4155. Failed to correctly acquire installer_nodejs_windows.msi". Probably the NSA is inserting a backdoor into the NodeJS installer, because the relevant bug report mentions it's only happening in the US.
I have some issue, the fix is:
Uninstall any nodejs version.
Install https://nodejs.org/dist/v0.10.36/x64/node-v0.10.36-x64.msi.
Install Aptana.
aptanastudio  windows  nodejs  errormessage  solution 
june 2017 by kme
node.js - Install NPM into home directory with distribution nodejs package (Ubuntu) - Stack Overflow
Easier still: add prefix=$HOME/.local/lib/node_modules to your ~/.npmrc and then add that path + '/bin' to your PATH.

<code class="language-bash">
npm config set prefix $HOME/.local/lib/node_modules
echo "PATH=$HOME/.local/lib/node_modules/bin:$PATH" >> ~/.bashrc
</code>
nodejs  npm  configfile  dotfile  annoyance  solution 
march 2017 by kme
How to Install Node.js as a Non-Root User
Better solution is: https://pinboard.in/u:kme/b:9bf445c7beb6
Create the ~/.npmrc file:

vim ~/.npmrc

Set the contents of the ~/.npmrc file to the following:

root = /home/nodejs/.local/lib/node_modules
binroot = /home/nodejs/.local/bin
manroot = /home/nodejs/.local/share/man
npm  nodejs  nonroot  sysadmin  maybesolution 
march 2017 by kme
How to yum install Node.JS on Amazon Linux - Stack Overflow [http://stackoverflow.com/]
Stumbled onto this, was strangely hard to find again later. Putting here for posterity:

sudo yum install nodejs npm --enablerepo=epel
ec2  fedora  centos  nodejs  npm  amazonami  solution 
march 2017 by kme
apt - node: command not found - Ask Ubuntu
Like @minerz029 already said there is a conflict with the node package. But if you still need the node command (because a script uses only nodefor example), the correct way is to install the nodejs-legacy package:

apt-get install nodejs-legacy

and not create a symlink on your own (especially not in /usr/bin/). This will provide a node command for nodejs.
nodejs  node  debian  bower  errormessage  solution 
february 2017 by kme
stdin/stdout pipe in node.js · GitHub
process.stdin.resume()
process.stdin.on('data', function(data) { process.stdout.write(data) })
process.stdout.on('error', function(err) {
if (err.code === 'EPIPE') return process.exit()
process.emit('error', err)
})
nodejs  javascript  scripting  stdin  stdout  solution 
february 2016 by kme
software - node.js
Those of you who still find it enjoyable to learn the details of, say, a programming language – being able to happily recite off if NaN equals or does not equal null – you just don’t yet understand how utterly fucked the whole thing is. If you think it would be cute to align all of the equals signs in your code, if you spend time configuring your window manager or editor, if put unicode check marks in your test runner, if you add unnecessary hierarchies in your code directories, if you are doing anything beyond just solving the problem – you don’t understand how fucked the whole thing is. No one gives a fuck about the glib object model.
nodejs  javascript  programming  rant 
august 2014 by kme
« earlier      
per page:    204080120160

Copy this bookmark:





to read