相关疑难解决方法(0)

在Windows上运行Python以获取Node.js依赖项

我正在进入Node.js代码库,这需要我通过NPM下载一些依赖项,即jQuery.

在尝试运行时npm install jquery,我不断收到此错误:

Your environment has been set up for using Node.js 0.8.21 (x64) and NPM

C:\Users\Matt Cashatt>npm install jquery
npm http GET https://registry.npmjs.org/jquery
npm http 304 https://registry.npmjs.org/jquery
npm http GET https://registry.npmjs.org/jsdom
npm http GET https://registry.npmjs.org/xmlhttprequest
npm http GET https://registry.npmjs.org/htmlparser/1.7.6
npm http GET https://registry.npmjs.org/location/0.0.1
npm http GET https://registry.npmjs.org/navigator
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/htmlparser/1.7.6
npm http 304 https://registry.npmjs.org/xmlhttprequest
npm http 304 https://registry.npmjs.org/location/0.0.1
npm http 304 https://registry.npmjs.org/navigator
npm http 304 https://registry.npmjs.org/jsdom
npm http 304 https://registry.npmjs.org/contextify
npm …
Run Code Online (Sandbox Code Playgroud)

python windows node.js npm

217
推荐指数
13
解决办法
31万
查看次数

在M1芯片的Mac上安装python@2

长话短说,我想在配备 M1 芯片组的 MacBook Pro 上安装 Apache Cassandra。

为了安装它,必须先安装其他软件,其中之一是python,必须更新到最新版本。我已经遵循了这个教程

这是询问 python 现有版本时终端显示的内容:

> python --version 
Python 2.7.16
Run Code Online (Sandbox Code Playgroud)

在教程中,他们将其更新到 2.7.17,所以我尝试做同样的事情:

> brew install python@2
Run Code Online (Sandbox Code Playgroud)

这是输出:

Warning: No available formula or cask with the name "python@2". Did you mean bpython, ipython, jython or cython?
==> Searching for similarly named formulae...
These similarly named formulae were found:
bpython             ipython             jython              cython
To install one of them, run (for example):
  brew install bpython
==> Searching for a previously deleted formula (in the …
Run Code Online (Sandbox Code Playgroud)

python macos cassandra python-2.7 apple-m1

48
推荐指数
2
解决办法
6万
查看次数

标签 统计

python ×2

apple-m1 ×1

cassandra ×1

macos ×1

node.js ×1

npm ×1

python-2.7 ×1

windows ×1