Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning and nothing installs somebody help me #3977

Closed
Nueb opened this issue Nov 23, 2015 · 9 comments
Closed

warning and nothing installs somebody help me #3977

Nueb opened this issue Nov 23, 2015 · 9 comments
Labels
npm Issues and PRs related to the npm client dependency or the npm registry. question Issues that look for answers.

Comments

@Nueb
Copy link

Nueb commented Nov 23, 2015

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
└── jx@0.1.3

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
└── ws@0.8.0

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 !

@mscdex
Copy link
Contributor

mscdex commented Nov 23, 2015

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

@mscdex mscdex added the npm Issues and PRs related to the npm client dependency or the npm registry. label Nov 23, 2015
@Trott
Copy link
Member

Trott commented Nov 23, 2015

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.

@Trott
Copy link
Member

Trott commented Nov 23, 2015

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.

@Trott Trott closed this as completed Nov 23, 2015
@Trott
Copy link
Member

Trott commented Nov 23, 2015

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

@Nueb
Copy link
Author

Nueb commented Nov 23, 2015

How other people install ws and jx modules so flawlessly ?

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

what is wrong with my installation ?

@ChALkeR ChALkeR added the question Issues that look for answers. label Nov 23, 2015
@Trott
Copy link
Member

Trott commented Nov 23, 2015

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.

@Nueb
Copy link
Author

Nueb commented Nov 23, 2015

@ 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 npm@3.3.6.

i'll try both 3.3.6 and version 2 x

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

@tflanagan
Copy link
Contributor

@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

@Nueb
Copy link
Author

Nueb commented Nov 25, 2015

@ Trott >>. Amazing It worked. 💯
Thanks for your help and giving me your valueable time 🎱 :
If you like play agario sometimes.
👍
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
jx@0.1.3 node_modules\jx

C:\Users\agario>npm install ws
\

bufferutil@1.2.1 install C:\Users\agario\node_modules\ws\node_modules\bufferut
il
node-gyp rebuild

C:\Users\agario\node_modules\ws\node_modules\bufferutil>if not defined npm_confi
g_node_gyp (node "C:\Program Files\nodejs\node_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\agario\node_modules\ws\node_modules\bufferutil\b
uild\Release\bufferutil.lib and object C:\Users\agario\node_modules\ws\node_m
odules\bufferutil\build\Release\bufferutil.exp
Generating code
Finished generating code
bufferutil.vcxproj -> C:\Users\agario\node_modules\ws\node_modules\bufferutil
\build\Release\bufferutil.node
ws@0.8.0 node_modules\ws
+-- options@0.0.6
+-- ultron@1.0.2
+-- bufferutil@1.2.1

@tflanagan I'd try that too !! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Issues and PRs related to the npm client dependency or the npm registry. question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

5 participants