问题描述
我无法解决此问题.我到处搜寻,但找不到任何地方.我刚刚开始学习MEAN Stack.我正在尝试为Stack安装所有组件. (我目前已经为Python Stack和Ruby Stack安装了程序).不知道这些是否与我的问题有关.我还是编程新手.任何信息将不胜感激.
I'm having trouble to resolve this issue. I've searched around but not getting anywhere. I've just started learning MEAN Stack. I'm trying to install all components for the Stack. (I currently have programs installed for Python Stack and Ruby Stack). Not sure if those will have anything to do with my problem. I'm still new to programming. Any info would be greatly appreciated.
这是我当前正在运行的内容:
- MacOS Sierra v10.12.5
- 节点v8.0.0
- npm v5.0.0
我已安装:
$ npm install nodemon
(-g)
.. global给我一个问题,所以我没有安装它.
(-g)
..global was giving me a problem so I installed without it.
$ npm install bower
(-g)
.. global也给我一个问题,所以我没有安装它.
(-g)
..global was also giving me a problem so I installed without it.
然后当我尝试安装时:
$ npm install jquery
我遇到错误.这就是它的意思..
I was getting errors.Here is what it says..
npm WARN saveError ENOENT: no such file or directory, open '/Users/jaepark75/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/jaepark75/package.json'
npm WARN jaepark75 No description
npm WARN jaepark75 No repository field.
npm WARN jaepark75 No README data
npm WARN jaepark75 No license field.
npm WARN jaepark75 Invalid dependency: balanced-match undefined
npm WARN jaepark75 Invalid dependency: block-stream undefined
npm WARN jaepark75 Invalid dependency: brace-expansion undefined
npm WARN jaepark75 Invalid dependency: concat-map undefined
npm WARN jaepark75 Invalid dependency: fs.realpath undefined
npm WARN jaepark75 Invalid dependency: fstream undefined
npm WARN jaepark75 Invalid dependency: glob undefined
npm WARN jaepark75 Invalid dependency: graceful-fs undefined
npm WARN jaepark75 Invalid dependency: hammerjs undefined
npm WARN jaepark75 Invalid dependency: inflight undefined
npm WARN jaepark75 Invalid dependency: inherits undefined
npm WARN jaepark75 Invalid dependency: materialize-css undefined
npm WARN jaepark75 Invalid dependency: minimatch undefined
npm WARN jaepark75 Invalid dependency: minimist undefined
npm WARN jaepark75 Invalid dependency: mkdirp undefined
npm WARN jaepark75 Invalid dependency: node-archiver undefined
npm WARN jaepark75 Invalid dependency: once undefined
npm WARN jaepark75 Invalid dependency: path-is-absolute undefined
npm WARN jaepark75 Invalid dependency: rimraf undefined
npm WARN jaepark75 Invalid dependency: tar undefined
npm WARN jaepark75 Invalid dependency: wrappy undefined
added 1 package in 2.742s
感谢您抽出宝贵的时间对此进行研究.
Thank you for taking the time to look at this.
推荐答案
我遇到了同样的问题,并且在遇到许多错误后终于可以使用了.我删除了我拥有的文件,并按照所述顺序重新开始了这些步骤:
I had the same problem and after many errors it finally works. I deleted the files I had and restarted with these steps in the order stated:
转到您要使用的目录,并创建一个名为"node"的文件夹
Go to the directory you want to work in and create a folder named "node" for example
$ cd /directory/
$ mkdir node
您将需要package.json这样:
You will need package.json so:
$ npm init
然后是下载快递,它创建了要下载jquery的node_modules
Then download express which creates node_modules where the download of jquery goes into
$ npm install express
然后使用大写字母而不是没有大写字母来安装jQuery,然后我尝试在没有大写字母之后尝试
Then install jQuery with a capital instead of without, i then tried without a capital after
$ npm install jQuery
然后npm安装所有其他需要的软件包并
Then npm install all other needed packages and
$ npm update
希望这对您有用:)
在下载并使用后,下面的链接详细介绍了如何从那里进行操作:
The link below contains a great step through of how to go from there, after it has been downloaded to using it:
https://code.tutsplus.com/tutorials/how-to-scrape-web-pages-with-nodejs-and-jquery--net-22478
这篇关于npm install jquery error/saveError ENOENT/无效的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!