raguilera82 / generator-ts

Yeoman generator to start with TypeScript
Other
1 stars 0 forks source link

npm WARN optional Skipping failed optional dependency /chokidar/fsevents #1

Open ruchavarri opened 8 years ago

ruchavarri commented 8 years ago

a la hora de ejecutar npm install, aparece el siguiente error: al final aparece el siguiente mensaje npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.11 npm WARN poc@1.0.0 No description npm WARN poc@1.0.0 No repository field.

Toda la pinta que sea problema del sistema operativo sobre el que estoy corriendo. Alguna idea de como arreglar las dependencias?

Las versiones del sistema sobre el que estoy corriendo: Windows 8 Node v5.10.1 Npm 3.8.3

raguilera82 commented 8 years ago

Solo son warnings que se pueden ignorar, en principio no debería afectarte al correcto funcionamiento del proyecto. ¿Has notado que algo no funcione?

ruchavarri commented 8 years ago

por ejemplo "npm run live" incluyo a continuación el mensaje de error al ejecutar el script live: ` npm run live

poc@1.0.0 live C:\Angular2\meetupAngular2 ./node_modules/live-server/live-server.js

"." no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.

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" "run" "live" npm ERR! node v5.10.1 npm ERR! npm v3.8.3 npm ERR! code ELIFECYCLE npm ERR! poc@1.0.0 live: ./node_modules/live-server/live-server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the poc@1.0.0 live script './node_modules/live-server/live-server.js'. 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 poc package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ./node_modules/live-server/live-server.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs poc npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls poc npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Angular2\meetupAngular2\npm-debug.log`

On Tue, Apr 19, 2016 at 8:06 AM, Rubén Aguilera Díaz-Heredero < notifications@github.com> wrote:

Solo son warnings que se pueden ignorar, en principio no debería afectarte al correcto funcionamiento del proyecto. ¿Has notado que algo no funcione?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/raguilera82/generator-ts/issues/1#issuecomment-211743977

raguilera82 commented 8 years ago

No veo la imagen. ¿Puedes ponerla otra vez o describir el error?

raguilera82 commented 8 years ago

Pues sigo sin verla ;-)

ruchavarri commented 8 years ago

He añadido el mensaje sobre mi comentario original, que la imagen no estaba pública.

raguilera82 commented 8 years ago

Estas seguro de estar ejecutando los comandos en un PowerShell? Te recomiendo el plugin Terminal-Plus de Atom que es el que uso habitualmente y en Windows te proporciona un PowerShell

SrHuevo commented 8 years ago

A mi me pasa lo mismo. Tanto en la consola de atom como si abro un powershell. Estoy en Win10. Es raro porque si me reconoce el "." bien con cualquier comando pero cuando ejecuto npm run live me devuelve:

> AGEView@1.0.0 live C:\develop\workspaces\AGE\AGEView
> ./node_modules/live-server/live-server.js

"." no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\bin\\nodejs\\node.exe" "C:\\bin\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "live"
npm ERR! node v5.1.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! AGEView@1.0.0 live: `./node_modules/live-server/live-server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the AGEView@1.0.0 live script './node_modules/live-server/live-server.js'.
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 AGEView package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./node_modules/live-server/live-server.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls AGEView
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\develop\workspaces\AGE\AGEView\npm-debug.log 
SrHuevo commented 8 years ago

He conseguido arreglarlo agregando "node " antes de cada ruta del script en el archivo package.json.

Por ejemplo: "test": "./node_modules/karma/bin/karma start" Pasa a: "test": "node ./node_modules/karma/bin/karma start"

raguilera82 commented 8 years ago

Una forma mejor incluso:

"test": "karma start"

De esta forma no tienes que preocuparte por el path y la sintaxis queda más concisa. Internamente node está buscando el ejecutable en la carpeta .bin de la carpeta node_modules del proyecto, NO tiene porque estar instalada como global.

SrHuevo commented 8 years ago

Puse el ejemplo de test y justo me di cuenta despues de que no funcionaba, probando lo tuyo tampoco me funciona. Vamos con lo de node solo conseguí arreglar el "npm run live".

Me devuelve el siguiente error:

npm run test

> AGEView@1.0.0 test C:\develop\workspaces\AGE\AGEView
> karma start

05 07 2016 09:37:39.790:WARN [watcher]: Pattern "C:/develop/workspaces/AGE/AGEView/build/test/init.js" does not match any file.
05 07 2016 09:37:41.588:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
05 07 2016 09:37:41.622:INFO [launcher]: Starting browser Chrome
05 07 2016 09:37:43.172:INFO [Chrome 51.0.2704 (Windows 10 0.0.0)]: Connected on socket /#2XK8aB2xgg9HR9ZzAAAA with id 29833509
Chrome 51.0.2704 (Windows 10 0.0.0) ERROR
  Error: reflect-metadata shim is required when using class decorators
        Evaluating C:/develop/workspaces/AGE/AGEView/jspm_packages/npm/@angular/core@2.0.0-rc.1/src/util/decorators.js
        Evaluating C:/develop/workspaces/AGE/AGEView/jspm_packages/npm/@angular/core@2.0.0-rc.1/src/metadata.js
        Evaluating C:/develop/workspaces/AGE/AGEView/jspm_packages/npm/@angular/core@2.0.0-rc.1/index.js
        Evaluating C:/develop/workspaces/AGE/AGEView/jspm_packages/npm/@angular/core@2.0.0-rc.1/testing/fake_async.js

        Evaluating C:/develop/workspaces/AGE/AGEView/jspm_packages/npm/@angular/core@2.0.0-rc.1/testing.js
        Evaluating C:/develop/workspaces/AGE/AGEView/build/test/helloworld/hello-world.service.spec.js
        Error loading C:/develop/workspaces/AGE/AGEView/build/test/helloworld/hello-world.service.spec.js

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\bin\\nodejs\\node.exe" "C:\\Users\\dgaroz\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "test"
npm ERR! node v5.1.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! AGEView@1.0.0 test: `karma start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the AGEView@1.0.0 test script 'karma start'.
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 AGEView package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     karma start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs AGEView
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls AGEView
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\develop\workspaces\AGE\AGEView\npm-debug.log
raguilera82 commented 8 years ago

Pero date cuenta de que el error que te da ya no tiene que ver con que no encuentre el ejecutable por el path, los tests se ejecutan, pero te da el error de que el test tiene que tener importadas las librerías de reflect-metadata y es6-shim para funcionar.