This question already has answers here:
'npm' is not recognized as internal or external command, operable program or batch file
(37 answers)
Closed 6 years ago.
I already have idea about Angular 1.x. I'm planning to learn Angular 2.x. By this Tutorial, they are asking to install node.js and npm. I installed node.js. From where to write the command "npm install"? from the node.js installation directory or from my project directory? When i write from project directory, it says "npm is not an internal/external command" I got stuck here.
Any help??
install latest version of node (6.2.2), try using linux console such as git bash .
got to the folder where you want to install angular .
create folder structue using the tutorial available here
https://angular.io/docs/ts/latest/tutorial/
explained very neatly and straight to the point , all the best!
First install Node with respective OS
then in cmd prompt type node, if all the installation process fine then REPL will executed
then
install packages by
typing
npm install <package name>
Related
This question already has answers here:
Filename too long in Git for Windows
(18 answers)
Closed 1 year ago.
I got this error when I was running the npm run deploy command in the terminal, how can I resolve this error?
(Posted solution on behalf of the question author, to move it to the answer section.)
Run Git Bash as administrator (right-clicking the app shortcut will show the option to Run as Administrator )
Run the following command: git config --system core.longpaths true
Note: if step 2 does not work or gives any error, you can also try running this command: git config --global core.longpaths true
This worked for me.
I think this link will help you:
Filename too long in Git for Windows
You must run this command in your terminal:
git config --system core.longpaths true
anyone can help me I can't install Packages In Atom.
here is an error:'node.exe' is not recognized as an internal or external command,
operable program or batch file.
Download & Install Node.js
Try again your package installation
If still doesn't work, just Add node.exe installation path into environment variables manually.
I am using Git Bash terminal on my Windows 10 machine. I have below versions of node and npm
$ node -v
v12.16.1
$ npm -v
6.13.4
However while running the command $ npx create-react-app my-app I am getting the below error
'create-react-app' is not recognized as an internal or external command,
operable program or batch file.
I have added the create-react-app location till npm in PATH variable and checked its present using the echo command.
Also I am able to run the above npx command in cmd but not in Git Bash. Is there anything different I have to do run it?
PATH : /c/Users/SAURABH/AppData/Roaming/npm
I am able to run the create-react-app by doing the below though:
C:/Users/SAURABH/AppData/Roaming/npm/create-react-app one-hello-world
Not sure why npx is not working
EDIT: I solved by adding the below to PATH
C:\Users\SAURABH\AppData\Roaming\npm\node_modules
But the above path has the create-react-app folder and not the batch file. It should point to some batch file right?
I have same issue on my mac, start using yarn create react-app my-app . This solution works for me.
You should try this command with cmd or PowerShell. it's a bug with GitBash.
I can solve this error with cmd.
I am having trouble getting Jenkins to use the "npm" command from the "Execute shell" (under the "Build" step).
I am attempting to set up a new Jenkins instance (a copy from a previous one). I just imported the old jobs and am now getting the various services that these jobs depend on (e.g. maven, nodejs, ansible etc.) installed.
I am having trouble getting nodejs and npm, in particular, set up.
When I type the command "npm install" on the command line, I get the following:
uws#9.14.0 install /var/lib/jenkins/workspace . . .
. . .
Binary is fine
added 1282 packages in 36.424s
When I then attempt to run the same command using the Jenkins execute shell, I get the following:
+ npm install
/tmp/jenkins7750702649955218109.sh: line 2: npm: command not found
Build step 'Execute shell' marked build as failure
Why would this command be accessible to me from the command line but not to Jenkins?
Some things I have checked:
-The path to "node" and "npm" are both on the path. At least "shortcuts" are on the path (this worked in the previous Jenkins instance).
-The node and npm binaries have root:root ownership, but their security settings are (currently) 755 (or -rwxr-xr-x).
-I have the nodejs plugin installed. Not sure of how to use it, but its settings match those on the previous Jenkins instance. Both instances use the execute shell (as opposed to any special Jenkins tool) to run the "npm" commands, whilst only the old version worked.
So, what else should I be checking that I am not? What does Jenkins require to access the "npm" command?
Try this below options in Jenkins
Option 1:
Option 2:
I wrote so many thing in requirements.txt and reinstalled but it didn't work out. I installed odoo 9.0 source code for windows. The command prompt is showing error:
from pychart import *
What do I need to write in requirements.txt for pychart?
As i just ran into the same problem unrelated to odoo.
The following command solved it for me:
pip install Python-Chart
To install the python packages for odoo you can use below command found from this detailed odoo install guide
cd /tmp && wget https://raw.githubusercontent.com/odoo/odoo/9.0/requirements.txt && sudo pip install -r requirements.txt
It will install all the python dependacy in just one command.
Hope this helps.
You have to install that package before you use that, If are on ubuntu command is pip install pychart and if you are on windows the command is c:\Python27\Scripts\pip.exe install pychart.I assume you have installed python on default folder c drive.
Why don't you create a module like install_module and on depends you can add required list of module to install. If you install that module it'll automatically install all depended module. I'm using this same. Instead of command prompt it'll be quite easy too. You can view the depends module list in Technical Data of that install_modules.
I Hope it'll be helpful.