老师的源码我运行不起来

来源:10-9 【综合运用】搜索页面

守静笃

2023-03-18

我下载了源码
我先npm install,出现了

npm install
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm ERR! Cannot read properties of null (reading 'pickAlgorithm')

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\(这里是我的电脑名字)\AppData\Local\npm-cache\_logs\2023-03-18T06_36_03_268Z-debug-0.log

我再npm start

npm start

> react-travel@0.1.0 start
> react-scripts start

'react-scripts' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

请问老师怎么回事啊?我自己写的代码如果代码正常的话是可以运行的。希望老师能再有空时理理我,因为现在这个时间段对我很重要,这个项目必须完成,万分感谢老师!

写回答

1回答

阿莱克斯刘

2023-03-18

你的nodejs是什么版本?
0
16
阿莱克斯刘
回复
守静笃
ok,搞定就好,我研究一下你的答案,不客气。
2023-03-22
共16条回复

React18 系统精讲 结合TS打造旅游电商平台

React18 精讲 + 结合 TS 实战 + 热门业务开发,获取必备技能

1993 学习 · 1015 问题

查看课程