Error on npm install pinkie-promise - node.js

hi is there a way to install offline my dependencies, today I try to instal a new machine but the package pinkie-promise 2.0.0 is not available, (
When try to download direct from the site
https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.0.tgz i get
{"error":"package could not be found."}
so the command ´npm install´ get and error and rollback the process, i try to use the next versión the 2.0.4, and the command ´npm install pinkie-promise#2.0.4´ work and end success but, again run the command ´npm install´ to install all others and get the same error 404
Is there other way? i try to move the node_modules from other machine but the application dont work correctly

Related

i am getting this error even after executing this command "npm install express-hbs --save"

Hey guys I am getting error even after executing the above command if there is any other command to resolve this error please let me know
Error: Cannot find module 'express-hbs'
Before You start using the package - express-hbs, You must install it properly, most likely You installed the package in the wrong place, outside of the project folder.
In the root project folder, run the command:
npm install express-hbs
try again to run nodemon

./bin/neo4j install not working

I am trying to install neo4j Linux version. I have created $NEO4J_HOME in my bashrc and cd $NEO4J_HOME works fine. However, when I try to run ./bin/neo4j install, I get "Legacy install now lives in the 'neo4j-installer' script" and nothing else. Am I doing something wrong? Running ./bin/neo4j-installer install gives warning that this is outdated version etc. That one starts installation, but ./bin/neo4j install doesn't do anything. I am installing neo4j-community-2.1.5 What am I doing wrong?

What location does Node.js needs to be installed

I am trying to setup a project to work with Grunt. I need to install Node.js for that to run. I have downloaded and installed Node.js in c:\programfiles.
However when I try running npm install in my project c:\Grunt-proj , I get an error 'npm' is not recognized as an internal or external command.
Can someone help me with where to install Node.js? I am trying to follow this tutorial-
http://24ways.org/2013/grunt-is-not-weird-and-hard/
Many thanks,
The location is fine. I also have installed it in Program Files. But if you need to run the command npm from a command prompt then you need to add it to the path of the system. In my case I have C:\Program Files\nodejs

"bower install underscore" getting error in node.js

"bower install underscore" getting error
bower ENOGIT git is not installed or not in the path
I want to use static resources in node.js website so I am installing underscore using bower but I am getting this error.
I am also getting the same error and the Solution is first check if the "Git" is installed or not in the system and if not please install it.
After installation open "Git Bash" from windows and go to your project (same way you go in command prompt using "cd path").
Then run the same "Bower install command", It will work as expected.
You should install Git and make sure the git command is globally accessible or at least accessible for bower.
The msysGit project has a handy installer to make things easier. (assuming you're running Windows)
http://msysgit.github.com/
Found this solution here: http://git-scm.com/book/en/Getting-Started-Installing-Git

Building syntaxhightlighter with nodejs in windows 7

I need to build Syntaxhighlighter from here: https://github.com/alexgorbatchev/SyntaxHighlighter
I have read these:
https://npmjs.org/doc/faq.html
Getting started with NODE.JS in windows x86
Get started with Node.js in Windows
Installing node packages / dependencies using npm on Windows Server 2008
It seems that installing Nodejs from here http://nodejs.org/download/ should be enough.
Step 3 in the syntaxhighlighter Building instructions says:
3.Then ./node_modules/.bin/bower install to download dependencies
I have this path on my machine:
C:\Program Files (x86)\nodejs\node_modules\npm\bin
and I can see a bower.json in the syntaxhighlighter zip file.
I have googled how to download dependencies for windows, but I cant find anything.
There is a lot of info here:
How do I get started with Node.js
but I think this is not for windows env.
Can you assist?
EDIT:
Ok, seems to work now.
Installed Git-1.8.4-preview20130916.exe and restarted.
Step 8 ok now.
Step 9 gives "grunt not recognized".
Tried
npm install -g grunt-cli
from here: https://github.com/gruntjs/grunt/issues/774
Now I have a pkg folder
Thank you sir
Install NodeJs for Windows per instructions
Install Git for Windows, select option to Add Git to your path.
Open a new command prompt in Windows. Ideally, open as an Administrator. Do not reuse existing command prompts. The path will only be set in a new command prompt properly.
Download the code for the highlighter or use git to clone
If you got the zip file, unzip it
From the command prompt, change the active directory to be the folder of the code you cloned or unzipped
Type npm install -g grunt-cli, then Enter after each of the following...
Type npm install -g bower
Type npm install
Type bower install
Type grunt build
Done.
You have to install git package in this way:
sudo apt-get install git
It's working fine!

Resources