Node: warning and nothing installs somebody help me

Created on 23 Nov 2015  ·  10Comments  ·  Source: nodejs/node

System :

Windows 7 Ultimate Fresh Install. (64 bit )
Python 2.7
Visual Studio Express 2013 for Windows Desktop
Git
Node.js latest version 5.1.0 ( 64 bit )

I am trying to install these two packages

1] jx https://www.npmjs.com/package/jx
2] ws https://www.npmjs.com/package/ws

but for some reason nothing installs ... i get bunch of warnings

When i tried to install jx I got these warnings

Your environment has been set up for using Node.js 5.1.0 (x64) and npm.

C:\Users\agario>npm install jx
C:\Users\agario
└── [email protected]

npm WARN ENOENT ENOENT: no such file or directory, open 'C:\Users\agario\package
.json'
npm WARN EPACKAGEJSON agario No description
npm WARN EPACKAGEJSON agario No repository field.
npm WARN EPACKAGEJSON agario No README data
npm WARN EPACKAGEJSON agario No license field.

C:\Users\agario>

and when I tried ws I got following warnings

Your environment has been set up for using Node.js 5.1.0 (x64) and npm.

C:\Users\agario>npm install --save ws
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\agario\pack
age.json'
C:\Users\agario
└── [email protected]

npm WARN ENOENT ENOENT: no such file or directory, open 'C:\Users\agario\package
.json'
npm WARN EPACKAGEJSON agario No description
npm WARN EPACKAGEJSON agario No repository field.
npm WARN EPACKAGEJSON agario No README data
npm WARN EPACKAGEJSON agario No license field.

C:\Users\agario>

Please Somebody help me !

npm question

Most helpful comment

Fuck node.js

All 10 comments

Looks like you forgot to create your package.json. Try npm init first.

You probably also don't want to do it in your home directory. You probably want to first create a directory for your project and run npm init from there.

I'm going to close this issue, but if you have further questions or difficulties, feel free to post an issue in the issue tracker designated for help questions: https://github.com/nodejs/help/issues This issue tracker is for node itself (bugs, feature requests, etc.) and not a general user help forum.

Fuck node.js

By the way, those are warnings only. The packages probably did install into the node_modules subdirectory in your current working directory.

How other people install ws and jx modules so flawlessly ?

https://youtu.be/7LsZ8z-wLbU?t=111

what is wrong with my installation ?

If you use npm 2.x, you will not get any warnings.

However, the recent npm 3.x issues these warnings.

They are only warnings.

The package is successfully installing.

Any video showing the packages installing without warnings when there is no package.json file is probably using /npm 2 and not npm 3.

For that matter, it is also probably using Node 4 or earlier.

@ Trott : Thanks for Reply. I'll give it a try.
I watched the video : His npm version is 3.3.6

pause the video at https://youtu.be/7LsZ8z-wLbU?t=123

he is using [email protected].

i'll try both 3.3.6 and version 2 x

my npm version is
C:\Users\agario>npm -v
3.3.12

@Nueb I'd like to emphasis that you are missing the package.json file which is why these warnings are showing. It hasn't been said yet, so I'll say it;

You need to create a valid package.json file to "fix" these warnings.

Here is more information on this file: https://docs.npmjs.com/files/package.json

@ Trott >>. Amazing It worked. :100:
Thanks for your help and giving me your valueable time :8ball: :
If you like play agario sometimes.
:+1:
and Finally I was able to run server file without any error massage
http://imgur.com/Lgx5Nz7

I used "npm-windows-upgrade" to install npm v 2 .

Here is log

Your environment has been set up for using Node.js 5.1.0 (x64) and npm.

C:\Users\agario>npm -v
2.14.12

C:\Users\agario>npm install jx
[email protected] node_modules\jx

C:\Users\agario>npm install ws
\

[email protected] install C:\Users\agarionode_modules\wsnode_modules\bufferut
il
node-gyp rebuild

C:\Users\agarionode_modules\wsnode_modules\bufferutil>if not defined npm_confi
g_node_gyp (node "C:\Program Files\nodejsnode_modules\npm\bin\node-gyp-bin..\
..node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
bufferutil.cc
win_delay_load_hook.c
Creating library C:\Users\agarionode_modules\wsnode_modules\bufferutil\b
uild\Release\bufferutil.lib and object C:\Users\agarionode_modules\ws\node_m
odules\bufferutil\build\Release\bufferutil.exp
Generating code
Finished generating code
bufferutil.vcxproj -> C:\Users\agarionode_modules\wsnode_modules\bufferutil
\build\Release\bufferutil.node
[email protected] node_modules\ws
+-- [email protected]
+-- [email protected]
+-- [email protected]

@tflanagan I'd try that too !! :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmichae3 picture jmichae3  ·  3Comments

cong88 picture cong88  ·  3Comments

Brekmister picture Brekmister  ·  3Comments

stevenvachon picture stevenvachon  ·  3Comments

filipesilvaa picture filipesilvaa  ·  3Comments