I'm attempting to create my first Yeoman webapp using the ultimate-seed-generator. However I get the following errors:
C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect>npm install
> ultimate-seed#0.3.12 preinstall C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect
> node npm-scripts preinstall
npm preinstall script executed
\
> ultimate-seed#0.3.12 postinstall C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect
> node npm-scripts postinstall
npm postinstall script executed
{ [Error: Command failed: cp: invalid option -- n
Try `cp --help' for more information.
] killed: false, code: 1, signal: null }
-
npm ERR! ultimate-seed#0.3.12 postinstall: `node npm-scripts postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ultimate-seed#0.3.12 postinstall script.
npm ERR! This is most likely a problem with the ultimate-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node npm-scripts postinstall
npm ERR! You can get their info via:
npm ERR! npm owner ls ultimate-seed
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect\npm-debug.log
npm ERR! not ok code 0
I am pretty sure that node js and yeoman were installed ok. I think it can be a problem with Window and yeoman. Anyone know anything about it?
The problem is that the post-install script uses the unix cp command to copy files. Being that you're on Windows, that is not going to work
You can run the npm install under cygwin or some other unix-type shell on windows.
However, That package has been deleted from npm -- you should try to find one that is up-to-date and use that one instead.
Related
Here is the error i'm getting from cmd I tried look for a solution and not luck i didn't try it on OSX yet i might try that later
npm ERR! # watch-poll: `npm run watch -- --watch-poll`
npm ERR! Exit status 4294963238
npm ERR!
npm ERR! Failed at the # watch-poll script.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run watch -- --watch-poll
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "watch-poll"
npm ERR! cwd C:\Users\Yosef\Desktop\pos
npm ERR! node -v v6.11.2
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Yosef\Desktop\pos\npm-debug.log
npm ERR! not ok code 0
Sometimes, when you already started your webserver, the ELIFECYCLE error comes if you try to run the npm command again on another terminal session.
Make sure that you don't have any other instance running up.
I'm trying to install marzipano: https://github.com/google/marzipano
when I execute command line "npm run dev", it happen:
$ npm run dev
> marzipano#0.5.2 dev C:\Users\Clavis\Desktop\marzipano-master
> scripts/dev
'scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Clavis\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v6.9.4
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! marzipano#0.5.2 dev: `scripts/dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the marzipano#0.5.2 dev script 'scripts/dev'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the marzipano package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! scripts/dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs marzipano
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls marzipano
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Clavis\Desktop\marzipano-master\npm-debug.log
npm-debug.log: https://app.box.com/s/f0yxb2hiu49gp7rsgv5qm26auftm1zka
how to solve this error?
I'm having some trouble installing NW.js. When I run npm install nw, I get these error messages:
> nw#0.12.3 postinstall /root/node_modules/nw
> node scripts/install.js
sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! nw#0.12.3 postinstall: `node scripts/install.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the nw#0.12.3 postinstall script.
npm ERR! This is most likely a problem with the nw package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls nw
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.3.0-kali1-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "nw"
npm ERR! cwd /root
npm ERR! node -v v4.2.6
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0
I'm pretty sure the problem has to do with the first section where it talks about node being installed. I know there's an issue with Debian where the node package is actually already taken, so they use nodejs instead. I don't know enough this to fix it, I've already tried running export node=nodejs and adding it to the ~/.bashrc. Does anyone have any ideas about what I can do? I've had this problem with other npm packages as well.
The nodejs executable is called node, not nodejs. So, just remove the line you added. (export node=nodejs)
If it still won't work: Try reinstall node via package management (apt-get/yum/dnf) or Try reinstall the executable and setup PATH from website (https://nodejs.org/en/download/).
I am on Windows and am trying to follow the instructions at http://yeoman.io/learning/index.html. So far I have successfully installed grunt-cli and bower but when I try to install yo using the following command...
npm install -g yo
...the command prompt returns this:
> spawn-sync#1.0.11 postinstall C:\Users\Aaron\AppData\Roaming\npm\node_modules\yo\node_modules\cross-spawn\node_modules\spawn-sync
> node postinstall
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! file ;C:\Windows\system32\cmd.exe
npm ERR! path ;C:\Windows\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn ;C:\Windows\system32\cmd.exe
npm ERR! spawn-sync#1.0.11 postinstall: `node postinstall`
npm ERR! spawn ;C:\Windows\system32\cmd.exe ENOENT
npm ERR!
npm ERR! Failed at the spawn-sync#1.0.11 postinstall script 'node postinstall'.
npm ERR! This is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall
npm ERR! You can get their info via:
npm ERR! npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Aaron\AppData\Roaming\npm\node_modules\npm-debug.log
Does anyone have any idea what the hell this means and how I can fix it?
You can try with this : https://github.com/npm/npm/issues/7781
I think this will helps you to solve your question.
And to get node & npm in cmd. You can set node location in windows environment variable. Then restart your cmd & try again to do this.
Try re-installing the setup with feature npm package manager and then get back to your npm install.
i am totally new to node.js and mongodb. I am using the following link: http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/
This procedure worked very fine and got the exact same results. But all of a sudden "npm start" stopped working.
I uninstalled every thing and trying to re-install from step 1 given in this tutorial. when i give the command "npm install -g express" i am not getting any list of http 304's and GETS!! .
As i ignore and continue the procedure, i give the command npm start , but it does not work. the error displayed is shown below
C:\project\nodetest1>npm start
> nodetest1#0.0.0 start C:\project\nodetest1
> node ./bin/www
npm ERR! nodetest1#0.0.0 start: `node ./bin/www`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the nodetest1#0.0.0 start script.
npm ERR! This is most likely a problem with the nodetest1 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get their info via:
npm ERR! npm owner ls nodetest1
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! cwd C:\project\nodetest1
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! nodetest1#0.0.0 start: `node ./bin/www`
npm ERR! Exit status -1
npm ERR!
npm ERR! Failed at the nodetest1#0.0.0 start script.
npm ERR! This is most likely a problem with the nodetest1 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get their info via:
npm ERR! npm owner ls nodetest1
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! cwd C:\project\nodetest1
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\project\nodetest1\npm-debug.log
npm ERR! not ok code 0
Please help . Thanks in advance.
The error suggests that the ./bin/www directory is not found. Paths specified with a dot are relative to the current directory, so your current directory has to be C:/project/nodetest1 for npm start to work in this case.
There are several issues here.
First, you should upgrade to a newer npm, as the npm that ships with even the latest version of node is out of date. To upgrade npm on Windows, follow the instructions here:
https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
Second, you may need to do some more troubleshooting on your own to find the problem. npm start just follows the instructions in the package.json. The package.json is telling npm that start means "run node ./bin/www".
What happens when you run that same script from the command line?
cd C:\project\nodetest1
node ./bin/www
Does the file 'bin/www' exist? Is node installed and in your path? These are the issues that you will have to troubleshoot.
Delete the node_modules folder.
Run npm install
And then, re-run your command npm start
The package.json is telling npm that start means "run node ./bin/www".
**but packege.json predefined staring script is npm run serve **
please try this one.
npm run serve
"start": "concurrently \"npm run build:watch\" \"npm run serve\""
One of the possible situation causing this problem might be that the command npm start is giving error is because the current directory that you are in right now and the react app directory is not same. Try navigating your command prompt to the react app location using cd ./your react app location/