我尝试安装node.js调制解调器npm包但它在serialport子包安装上停止了。我不明白我做错了什么? 也许为什么node-pre-gyp停止安装? 我明白了: C:\ Users \ myFirefox-addon> npm install modem npm WARN package.json myfirefox-addon@0.0.1没有存储库字段。 |
serialport@2.0.1安装C:\ Users \ myFirefox-addon \ node_modules \ modem \ node_modu LES \的SerialPort node-pre-gyp install --fallback-to-build
(node) child_process: options.customFds option is deprecated. Use options.stdio
instead.
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: tunneling socket could not be established, cause=socket ha
ng up
gyp ERR! stack at ClientRequest.onError (C:\Program Files\nodejs\node_module
s\npm\node_modules\request\node_modules\tunnel-agent\index.js:174:17)
gyp ERR! stack at ClientRequest.g (events.js:260:16)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at TLSSocket.socketErrorListener (_http_client.js:259:9)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at TLSSocket.emit (events.js:169:7)
gyp ERR! stack at emitErrorNT (net.js:1250:8)
gyp ERR! stack at doNTCallback2 (node.js:430:9)
gyp ERR! stack at process._tickCallback (node.js:344:17)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--nam
e=serialport" "--configuration=Release" "--module_name=serialport" "--version=2.
0.1" "--major=2" "--patch=1" "--runtime=node" "--node_abi=node-v46" "--platform=
win32" "--target_platform=win32" "--arch=x64" "--target_arch=x64" "--module_main
=./serialport" "--host=https://node-serialport.s3.amazonaws.com/" "--module_path
=C:\\Users\\myFirefox-addon\\node_modules\\modem\\node_modules\\serialport\\buil
d\\serialport\\v2.0.1\\Release\\node-v46-win32-x64" "--remote_path=./serialport/
v2.0.1/Release/" "--package_name=node-v46-win32-x64.tar.gz" "--staged_tarball=bu
ild\\stage\\serialport\\v2.0.1\\Release\\node-v46-win32-x64.tar.gz" "--hosted_pa
th=https://node-serialport.s3.amazonaws.com/serialport/v2.0.1/Release/" "--hoste
d_tarball=https://node-serialport.s3.amazonaws.com/serialport/v2.0.1/Release/nod
e-v46-win32-x64.tar.gz"
gyp ERR! cwd C:\Users\myFirefox-addon\node_modules\modem\node_modules\serialport
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd rebuild --name=se
rialport --configuration=Release --module_name=serialport --version=2.0.1 --majo
r=2 --patch=1 --runtime=node --node_abi=node-v46 --platform=win32 --target_platf
orm=win32 --arch=x64 --target_arch=x64 --module_main=./serialport --host=https:/
/node-serialport.s3.amazonaws.com/ --module_path=C:\Users\myFirefox-addon\node_m
odules\modem\node_modules\serialport\build\serialport\v2.0.1\Release\node-v46-wi
n32-x64 --remote_path=./serialport/v2.0.1/Release/ --package_name=node-v46-win32
-x64.tar.gz --staged_tarball=build\stage\serialport\v2.0.1\Release\node-v46-win3
2-x64.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v
2.0.1/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialp
ort/v2.0.1/Release/node-v46-win32-x64.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\myFirefox-addo
n\node_modules\modem\node_modules\serialport\node_modules\node-pre-gyp\lib\util\
compile.js:76:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:818:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\myFi
refox-addon\\node_modules\\modem\\node_modules\\serialport\\node_modules\\node-p
re-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\myFirefox-addon\node_modules\modem\node_modules\s
erialport
node-pre-gyp ERR! node -v v4.1.2
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd rebuild --name=serialport --configuration=Releas
e --module_name=serialport --version=2.0.1 --major=2 --patch=1 --runtime=node --
node_abi=node-v46 --platform=win32 --target_platform=win32 --arch=x64 --target_a
rch=x64 --module_main=./serialport --host=https://node-serialport.s3.amazonaws.c
om/ --module_path=C:\Users\myFirefox-addon\node_modules\modem\node_modules\seria
lport\build\serialport\v2.0.1\Release\node-v46-win32-x64 --remote_path=./serialp
ort/v2.0.1/Release/ --package_name=node-v46-win32-x64.tar.gz --staged_tarball=bu
ild\stage\serialport\v2.0.1\Release\node-v46-win32-x64.tar.gz --hosted_path=http
s://node-serialport.s3.amazonaws.com/serialport/v2.0.1/Release/ --hosted_tarball
=https://node-serialport.s3.amazonaws.com/serialport/v2.0.1/Release/node-v46-win
32-x64.tar.gz' (1)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "modem"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code ELIFECYCLE
npm ERR! serialport@2.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@2.0.1 install script 'node-pre-gyp install --f
allback-to-build'.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: