Note that there are some explanatory texts on larger screens.

plurals
  1. POCant install dependencies in node js
    primarykey
    data
    text
    <p>im learning node js and i just did a tutorial in wich i was trying to create a chat, everything works good until i got stuck in a step of the tutorial. I decided to download the sources of the tutorial to run the serven and see whats the problem i have a folder called curso in this folder i have two folders ona es chatnodejs and other is sourcechatjs, in chat nodejs i have packasge.json and server js, i ran npminstall and everything is good. But, when i downloades the chat source i placed it in sourcechatjs i opened the temirnal and ran npm install and got this eror.</p> <pre><code>jhonnatans-MacBook-Pro:chat jhonnatan$ npm install npm ERR! install Couldn't read dependencies npm ERR! Failed to parse json npm ERR! Unexpected token / npm ERR! File: /Users/jhonnatan/Documents/Cursoseccion2/clasenodejs/chat/package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! This is not a bug in npm. npm ERR! Tell the package author to fix their package.json file. JSON.parse npm ERR! System Darwin 12.3.0 npm ERR! command "node" "/usr/local/bin/npm" "install" npm ERR! cwd /Users/jhonnatan/Documents/Cursoseccion2/clasenodejs/chat npm ERR! node -v v0.10.0 npm ERR! npm -v 1.2.14 npm ERR! file /Users/jhonnatan/Documents/Cursoseccion2/clasenodejs/chat/package.json npm ERR! code EJSONPARSE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/jhonnatan/Documents/Cursoseccion2/clasenodejs/chat/npm-debug.log npm ERR! not ok code 0 </code></pre> <p>this is how my json looks like</p> <pre><code>{ // Aca definiremos nuestro package.json, lo primero es el nombre "name": "curso", // Luego la version del mismo "version": "0.0.1", // Ahora las dependencias, normalmente podrias hacer esto con npm pero es mucho mejor tener claro y ejecutar estricatemente las necesaria "dependencies": { // Express el cual se encargara de ser nuestro framework en node "express": "", //los tipos de vista, jade parecido al que usa ruby on rails y swig parecido al que usa django "jade": "", "swig": "", // El que se encargara de renderizar los templates en un contexto "consolidate": "", // y por ultimo el encargado de manejar los sockets :) "socket.io": "" } </code></pre> <p>}</p> <p>iv been trying a lot but seriously i have no idea of what could be the problem i will appreciate of someone could let me know the problem!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload