Can't install any packages with Node.js [duplicate] - node.js

This question already has answers here:
Error: Cannot find module '#ionic/app-scripts'
(18 answers)
Closed 3 years ago.
I'm an absolute novice in Ionic, Cordova and Node.js.
I have the following problem with Node.js:
I got a project from a colleague created with ionic and cordova. The app itself is also running, for a special customer, we have adapted the design. My thought was that it was done quickly. I changed my branch in GIT to the corresponding project and wanted to do it. Unfortunately, I get countless error messages and warnings that I did not have in the previous project.
I uninstalled Node.js and reinstalled it completely, unfortunately nothing has changed. I can not uninstall or install any of the packages. I always get this eternally long error message and I do not know exactly what the problem is. Uninstalling Ionic and cordova does not work either, same error message. Below is a listing of my version of Node.js, Ionic and cordova and the beginning and end of the error message.
Console:gitproject user$ git branch
* development
master
Console:gitproject user$ ionic cordova build
? What platform would you like to build (android, ios): ios
> ionic-app-scripts build --target cordova --platform ios
[08:44:43] ionic-app-scripts 3.2.3
[08:44:43] build dev started ...
[08:44:43] clean started ...
[08:44:43] clean finished in 24 ms
[08:44:43] copy started ...
[08:44:43] deeplinks started ...
[08:44:44] deeplinks finished in 593 ms
[08:44:44] transpile started ...
[08:44:56] typescript: src/app/app.component.ts, line: 34
Cannot find name 'Globalization'.
L33: private translate: TranslateService,
L34: private globalization: Globalization) {
L35: platform.ready().then(() => {
[08:44:56] ionic-app-script task: "build"
[08:44:56] Error: Failed to transpile program
Error: Failed to transpile program
at new BuildError (/path/to/project/gitproject/node_modules/#ionic/app-scripts/dist/util/errors.js:16:28)
at /path/to/project/gitproject/node_modules/#ionic/app-scripts/dist/transpile.js:159:20
at new Promise (<anonymous>)
at transpileWorker (/path/to/project/gitproject/node_modules/#ionic/app-scripts/dist/transpile.js:107:12)
at Object.transpile (/path/to/project/gitproject/node_modules/#ionic/app-scripts/dist/transpile.js:64:12)
at /path/to/project/gitproject/node_modules/#ionic/app-scripts/dist/build.js:109:82
[ERROR] An error occurred while running subprocess ionic-app-scripts.
ionic-app-scripts build --target cordova --platform ios exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Console:gitproject user$ ionic cordova plugin add cordova-plugin-globalization
> cordova plugin add cordova-plugin-globalization --save
Installing "cordova-plugin-globalization" for ios
Unable to load PlatformApi from platform. Error: Cannot find module 'unorm'
Require stack:
- /path/to/project/gitproject/platforms/ios/cordova/Api.js
- /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js
- /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js
- /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js
- /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/plugman.js
- /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/cordova-lib.js
- /usr/local/lib/node_modules/cordova/src/help.js
- /usr/local/lib/node_modules/cordova/src/cli.js
- /usr/local/lib/node_modules/cordova/bin/cordova
Failed to install 'cordova-plugin-globalization': Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('The platform "ios" does not appear to be a valid ' +
'cordova platform. It is missing API.js. ios not ' +
'supported.')
at CordovaEventEmitter.emit (events.js:185:17)
at CordovaEventEmitter.emit (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/events.js:69:22)
at Object.getPlatformApiFunction (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js:384:20)
at Object.getPlatformApi (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js:55:32)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:580:29)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:349:28
at processTicksAndRejections (internal/process/task_queues.js:89:5)
Unhandled error. ('The platform "ios" does not appear to be a valid ' +
'cordova platform. It is missing API.js. ios not ' +
'supported.')
Console:gitproject user$ npm install #ionic-native/globalization
> fsevents#1.2.4 install /path/to/project/gitproject/node_modules/fsevents
> node install
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v72-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for fsevents#1.2.4 and node#12.2.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
...
...
...
...
10 warnings and 8 errors generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/path/to/project/gitproject/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:200:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/path/to/project/gitproject/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /path/to/project/gitproject/node_modules/node-sass
gyp ERR! node -v v12.3.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.9.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.9.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /path/to/user/folder/.npm/_logs/2019-05-27T08_04_02_672Z-debug.log
Here is the edition from the above mentioned error log
2653 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
2654 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 install: `node install`
2654 warn optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2655 verbose optional SKIPPING OPTIONAL DEPENDENCY:
2655 verbose optional Failed at the fsevents#1.2.4 install script.
2655 verbose optional SKIPPING OPTIONAL DEPENDENCY: This is probably not a problem with npm. There is likely additional logging output above.
2656 verbose stack Error: node-sass#4.9.0 postinstall: `node scripts/build.js`
2656 verbose stack Exit status 1
2656 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
2656 verbose stack at EventEmitter.emit (events.js:200:13)
2656 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
2656 verbose stack at ChildProcess.emit (events.js:200:13)
2656 verbose stack at maybeClose (internal/child_process.js:1021:16)
2656 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
2657 verbose pkgid node-sass#4.9.0
2658 verbose cwd /Users/premox/Documents/projects/gitproject
2659 verbose Darwin 18.6.0
2660 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "uninstall" "sass"
2661 verbose node v12.3.1
2662 verbose npm v6.9.0
2663 error code ELIFECYCLE
2664 error errno 1
2665 error node-sass#4.9.0 postinstall: `node scripts/build.js`
2665 error Exit status 1
2666 error Failed at the node-sass#4.9.0 postinstall script.
2666 error This is probably not a problem with npm. There is likely additional logging output above.
2667 verbose exit [ 1, true ]
Console:gitproject user$ node -v
v12.3.1
Console:gitproject user$ npm -v
6.9.0
Can someone explain this error message to me?

There are a couple of things you can do in order to setup the project correctly.
Check if node, ionic and cordova are properly installed.
Completely delete the node modules folder and then run the following command:-
npm install
This would install all the dependencies in the project.
If above doesnot work then you can try, same step mentioned by Ashok to resolve:-
npm install #ionic/app-scripts#latest --save-dev
Please let me know if you have any questions.

Related

why does node-sodium package is not working

Here I'm using node for making a discord bot, but there is a problem in the packages I think
Also, sodium is not found in the node_modules directory (folder)
tried many ways but nothing work :(
Repl.it: Updating package configuration
--> npm install
> sodium#3.0.2 preinstall /home/runner/test/node_modules/sodium
> node install.js --preinstall
Static libsodium was not found at /home/runner/test/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source.
libtool is required, but wasn't found on this system
Makefile:61: recipe for target 'libsodium' failed
make: *** [libsodium] Error 1
/home/runner/bgrb/node_modules/sodium/install.js:293
throw new Error(cmdLine + ' exited with code ' + code);
^
Error: make libsodium exited with code 2
at ChildProcess.<anonymous> (/home/runner/test/node_modules/sodium/install.js:293:19)
at ChildProcess.emit (events.js:314:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm WARN discord.js#11.6.4 requires a peer of #discordjs/uws#^10.149.0 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sodium#3.0.2 preinstall: `node install.js --preinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sodium#3.0.2 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-03-07T10_42_18_435Z-debug.log
exit status 1
I'm going to assume you're using some form of linux distro. (correct me if im wrong.)
by the looks of it you're missing libtool
try running apt-get install libtool in your terminal. (or install with whatever package manager you're using!)
if you're not using linux, or you are still having trouble please feel free to respond to this post.

Install node-sass on plesk

Ive been looking online for a solution to installing node-sass on my plesk server. I read that this is kind of a no no as this should not be done on a production server(dont care - not a live site).
I have uploaded the documents via bitbucket and click the NPM install button. The result is the failure below:
3822 verbose stack Error: node-sass#4.12.0 install: `node scripts/install.js`
3822 verbose stack spawn ENOENT
3822 verbose stack at ChildProcess.<anonymous> (/opt/plesk/node/9/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
3822 verbose stack at ChildProcess.emit (events.js:180:13)
3822 verbose stack at maybeClose (internal/child_process.js:936:16)
3822 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
3823 verbose pkgid node-sass#4.12.0
3824 verbose cwd /var/www/vhosts/mjmnagy.info/app
3825 verbose Linux 3.10.0-862.9.1.el7.x86_64
3826 verbose argv "/opt/plesk/node/9/bin/node" "/opt/plesk/node/9/bin/npm" "install"
3827 verbose node v9.10.1
3828 verbose npm v5.6.0
3829 error file sh
3830 error code ELIFECYCLE
3831 error errno ENOENT
3832 error syscall spawn
3833 error node-sass#4.12.0 install: `node scripts/install.js`
3833 error spawn ENOENT
3834 error Failed at the node-sass#4.12.0 install script.
3834 error This is probably not a problem with npm. There is likely additional logging output above.
3835 verbose exit [ 1, true ]
I attempted to login to the server using SSH but for the life of me couldn't figure out how to install it.
Using SSH, i navigated to where node is install (/opt/plesk/node/7/bin/) trying 6/7/8 and then running npm. i always got unrecognized command.
I then realized that the version i have of node-sass was higher than the node version install on the server(9.10.1)
What do i need to do to be able to install the module?
ignore plesks NPM install button and create a script in your package.json
"installme": "npm i --unsafe-perms"
Using plesk run the script
installme --scripts-node-prepend-path

Node.js SurfaceBook Win10 : #angular/cli will not install

Tech details:
SurfaceBook/win10 up to date;
Node.js 8.9.4 x64
Using an admin account
The goal was to take an app (nothing special about the web app) and make it run on this laptop. It works fine on my other devices (win7 and Linux).
I tried to solve the problem with other answers from StackOverflow. I went through : Removing files (Appdata/roaming/npm & npm-cache); uninstall node.js, reinstall and such. Nothing works.
I have a strange message when using NPM (the win version) in cmd.exe prompt. But it does not talk much under Git bash.
C:\Users\TexMex>npm -v
'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
5.6.0
C:\Users\TexMex>
The Git Bash is more silent. It doesn't mean it's not going through the same problem. The "PATH" environment variableS are set properly according to other StackOverflow answers. Still... it works... Ok it's not that of a problem as long as it works.
When installing packages everything goes well until #Angular/cli. I end up with this "uglify postinstall" error every time.
[...]
34735 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
34736 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
34736 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
34736 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32
34736 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
34737 warn optional SKIPPING OPTIONAL DEPENDENCY: node-sass#4.7.2 (node_modules\#angular\cli\node_modules\node-sass):
34738 warn optional SKIPPING OPTIONAL DEPENDENCY: node-sass#4.7.2 install: `node scripts/install.js`
34738 warn optional SKIPPING OPTIONAL DEPENDENCY: spawn C:\WINDOWS\system32\cmd.exe; ENOENT
34739 verbose optional SKIPPING OPTIONAL DEPENDENCY:
34739 verbose optional Failed at the node-sass#4.7.2 install script.
34739 verbose optional SKIPPING OPTIONAL DEPENDENCY: This is probably not a problem with npm. There is likely additional logging output above.
34740 verbose stack Error: uglifyjs-webpack-plugin#0.4.6 postinstall: `node lib/post_install.js`
34740 verbose stack spawn C:\WINDOWS\system32\cmd.exe; ENOENT
34740 verbose stack at _errnoException (util.js:1022:11)
34740 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
34740 verbose stack at onErrorNT (internal/child_process.js:372:16)
34740 verbose stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
34740 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9)
34741 verbose pkgid uglifyjs-webpack-plugin#0.4.6
34742 verbose cwd C:\Users\TexMex\Desktop\DEV\git
34743 verbose Windows_NT 10.0.16299
34744 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "--save-dev" "#angular/cli#latest"
34745 verbose node v8.9.4
34746 verbose npm v5.6.0
34747 error file C:\WINDOWS\system32\cmd.exe;
34748 error path C:\WINDOWS\system32\cmd.exe;
34749 error code ELIFECYCLE
34750 error errno ENOENT
34751 error syscall spawn C:\WINDOWS\system32\cmd.exe;
34752 error uglifyjs-webpack-plugin#0.4.6 postinstall: `node lib/post_install.js`
34752 error spawn C:\WINDOWS\system32\cmd.exe; ENOENT
34753 error Failed at the uglifyjs-webpack-plugin#0.4.6 postinstall script.
34753 error This is probably not a problem with npm. There is likely additional logging output above.
34754 verbose exit [ 1, true ]
The thing is it prevents #angular/cli directory to be created and the corresponding files to be "landed" here (global install or not). the 'ng' command is not available as a result (it's embarrassing).
I did my homework tried all the StackOverflow answer i could find; and I'm out of ideas.
Maybe it's some spurts in the windows registry (some previous install of nodeJS)?? but what are the keys to remove from the registry if there is??? Is it relevant to clean the registry in that case? Is it specific to surface book ??? All this would be weird.
So the final question is :
How do I make it work, 100% sure shot?
Bottle in the sea... Help.
I think i found the root cause of the problem.
It seems that an online Microsoft account (which is easily activated when using W10 and SurfaceBooks) forbids software to modify some directory in the user home directory. This directory (or part of it) is somehow synchronized with the Microsoft service.
So you cannot "mess" with it like if it was only local. Those directories appear like system protected directories when using the service. When not using it; they're just hidden like you all probably know. "AppData" and such are the ones who are synchronized.
Also, I would recommend to use NodeJs/Angular with Docker. Especially as Angular is regularly updated since version 4.

Heroku npm bower issue mean stack app

I keep trying to push to heroku with no success. I have tried modifying the .gitignore file, sticking to node version 10, clearing npm cache, trying to stage instead of production, getting frustrated please help!
-----> Node.js app detected
-----> Resetting git environment
-----> Requested node range: 0.10.x
-----> Resolved node version: 0.10.35
-----> Downloading and installing node
-----> Found existing node_modules directory; skipping cache
-----> Rebuilding any native dependencies
npm ERR! Error: ENOENT, chmod '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/bower-registry-client/node_modules/request/node_modules/node-uuid/bin/uuid'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.8.11-ec2
npm ERR! command "/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/vendor/node/bin/node" "/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/vendor/node/bin/npm" "rebuild"
npm ERR! cwd /tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! path /tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/bower-registry-client/node_modules/request/node_modules/node-uuid/bin/uuid
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/npm-debug.log
npm ERR! not ok code 0
0 info it worked if it ends with ok
1 verbose cli [ '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/vendor/node/bin/node',
1 verbose cli '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/vendor/node/bin/npm',
1 verbose cli 'rebuild' ]
2 info using npm#1.4.28
3 info using node#v0.10.35
4 info readInstalled object
5 verbose rebuild path, id [ '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a', 'cake#1.0.0' ]
6 verbose rebuild path, id [ '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower',
6 verbose rebuild 'bower#1.3.12' ]
7 verbose rebuild path, id [ '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/abbrev',
7 verbose rebuild 'abbrev#1.0.5' ]
8 verbose rebuild path, id [ '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/archy',
8 verbose rebuild 'archy#0.0.2' ]
9 verbose rebuild path, id [ '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/bower-config',
9 verbose rebuild 'bower-config#0.5.2' ]
10 verbose rebuild path, id [ '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/bower-config/node_modules/graceful-fs',
10 verbose rebuild 'graceful-fs#2.0.3' ]
11 verbose rebuild path, id [ '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/mout',
11 verbose rebuild 'mout#0.9.1' ]
.......
667 verbose linkMans node-uuid#1.4.2
668 verbose rebuildBundles node-uuid#1.4.2
669 error Error: ENOENT, chmod '/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/bower-registry-client/node_modules/request/node_modules/node-uuid/bin/uuid'
670 error If you need help, you may report this *entire* log,
670 error including the npm and node versions, at:
670 error <http://github.com/npm/npm/issues>
671 error System Linux 3.8.11-ec2
672 error command "/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/vendor/node/bin/node" "/tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/vendor/node/bin/npm" "rebuild"
673 error cwd /tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a
674 error node -v v0.10.35
675 error npm -v 1.4.28
676 error path /tmp/build_b8036af8fa11d1792ae4d166a4eaaf9a/node_modules/bower/node_modules/bower-registry-client/node_modules/request/node_modules/node-uuid/bin/uuid
677 error code ENOENT
678 error errno 34
679 verbose exit [ 34, true ]
! Push rejected, failed to compile Node.js app

npm start gives the error that server.js is not a valid win32 application

I'm trying to start the application server for a group project I'm doing. I posted my error below and I'll copy the npm-debug.log contents below.
This works perfectly fine my teammates mac laptop. I'm trying to run this on a Windows 8 64 bit machine. I tried with both the 32 bit and 64 bit binaries of node and it gives the same output.
output from npm start
Windows PowerShell Copyright (C) 2013 Microsoft Corporation. All
rights reserved.
C:\Users\damien\Documents\GitHub\lend [development]> npm start
lending-app#0.0.1 start C:\Users\damien\Documents\GitHub\lend
brunch watch --server
05 Apr 22:01:49 - error: couldn't load server lend.js: Error: %1 is
not a valid Win32 application.
C:\Users\damien\Documents\GitHub\lend\node_modules\client-sessions\node_modules\node-proxy\build\Release\nodeproxy.node
C:\Users\damien\AppData\Roaming\npm\node_modules\brunch\lib\watch.js:105
if (server.startServer == null) {
^ TypeError: Cannot read property 'startServer' of undefined
at startServer (C:\Users\damien\AppData\Roaming\npm\node_modules\brunch\lib\watch.js:105:17)
at C:\Users\damien\AppData\Roaming\npm\node_modules\brunch\lib\watch.js:418:18
at C:\Users\damien\AppData\Roaming\npm\node_modules\brunch\lib\helpers.js:475:14
at C:\Users\damien\AppData\Roaming\npm\node_modules\brunch\node_modules\read-components\index.js:207:16
at C:\Users\damien\AppData\Roaming\npm\node_modules\brunch\node_modules\read-components\index.js:34:14
at Object.cb [as oncomplete] (fs.js:168:19)
npm ERR! lending-app#0.0.1 start: brunch watch --server npm ERR!
Exit status 8 npm ERR! npm ERR! Failed at the lending-app#0.0.1 start
script. npm ERR! This is most likely a problem with the lending-app
package, npm ERR! not with npm itself. npm ERR! Tell the author that
this fails on your system: npm ERR! brunch watch --server npm ERR!
You can get their info via: npm ERR! npm owner ls lending-app 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\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR!
cwd C:\Users\damien\Documents\GitHub\lend npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3 npm ERR! code ELIFECYCLE npm ERR! npm ERR!
Additional logging details can be found in: npm ERR!
C:\Users\damien\Documents\GitHub\lend\npm-debug.log npm ERR! not ok
code 0 C:\Users\damien\Documents\GitHub\lend [development]>
npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\\node.exe',
1 verbose cli 'C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm#1.4.3
3 info using node#v0.10.26
4 verbose node symlink C:\Program Files\nodejs\node.exe
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart lending-app#0.0.1
7 info start lending-app#0.0.1
8 verbose unsafe-perm in lifecycle true
9 info lending-app#0.0.1 Failed to exec start script
10 error lending-app#0.0.1 start: brunch watch --server
10 error Exit status 8
11 error Failed at the lending-app#0.0.1 start script.
11 error This is most likely a problem with the lending-app package,
11 error not with npm itself.
11 error Tell the author that this fails on your system:
11 error brunch watch --server
11 error You can get their info via:
11 error npm owner ls lending-app
11 error There is likely additional logging output above.
12 error System Windows_NT 6.2.9200
13 error command "C:\Program Files\nodejs\\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
14 error cwd C:\Users\damien\Documents\GitHub\lend
15 error node -v v0.10.26
16 error npm -v 1.4.3
17 error code ELIFECYCLE
18 verbose exit [ 1, true ]
npm start calls the scripts.start entry in your package.json file. In this case it looks like the command is brunch watch --server. Chances are you are missing the brunch binary which is causing npm to spit out the error.

Resources